PDA

Zobacz pełną wersję : Zmiana linków na bardziej estetyczne?



brama
19-08-2006, 01:45
Witam!

Interesuje mnie w jaki sposób zostało zmienione na http://vel.pl linki do odnośników.

Wiadomo - normalnie są postaci: /content/blogsection/1/37/

jednak tam są typu:
http://www.vel.pl/biuro_prasowe/
http://www.vel.pl/kontakt/

Jak tego typu skrócone i estetyczne linki wykonać Joomla ?

Proszę o odpowiedź
Dziękuje ślicznie.
Pozdrawiam.

brama
19-08-2006, 03:28
(Joomla 1.0.10, php4)

Przypadkiem znalazłem to na extensions

Dla ewentualnie zainteresowanych:

Rozwiązaniem jest 404SEFx.

Należy edytować plik .htaccess i odznaczyć 3rd.

Poprawnie to powinno wyglądać w ten sposób (bynajmniej umnie działa)

.htaccess


## Can be commented out if causes errors, see notes above.
#Options FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)

# RewriteBase /


########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) /index.php
#
########## End Standard SEF Section


########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section
EOF

Pozdrawiam.