pretty url

Hilfe zur Installation
Post Reply
markus
Forum Members
Forum Members
Posts: 98
Joined: Mon Dec 17, 2007 4:13 pm

pretty url

Post by markus »

hallo, ich hatte schon mal saubere links im cms eingestellt, leider ist das schon lange her. nutze z.z 1.5.2, wo stelle ich es dort nomal ein? lg, markus
antibart
Power Poster
Power Poster
Posts: 1162
Joined: Sun Aug 17, 2008 9:29 am

Re: pretty url

Post by antibart »

Ohne .htaccess:

In der config.php unter URL - Settings ...
Die internal pretty url funktion macht aber nicht ganz so schicke url (index.php bleibt sichtbar) .. besser ist:

mit .htaccess
sofern dir dein Provider das erlaubt...

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
RewriteRule ^News/rss(.+)$ index.php?page=News/rss$1 [S=1]
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
Last edited by antibart on Fri Mar 20, 2009 11:07 am, edited 1 time in total.
markus
Forum Members
Forum Members
Posts: 98
Joined: Mon Dec 17, 2007 4:13 pm

Re: pretty url

Post by markus »

vielen dank, das wars!
Post Reply

Return to “Installation und Einstellungen”