hier der code:
Code: Alles auswählen
<IfModule mod_rewrite.c>
# Turn on the Rewrite Engine
RewriteEngine On
RewriteBase /
# if this is request for system folder, and not for uploads folder inside it, reject
RewriteCond $1 ^system
RewriteCond $1 !^system/application/uploads
RewriteRule ^(.+)$ index.php [R,L]
# If the file or directory exists, show it
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
# Blank queries get sent to the index
RewriteRule ^$ index.php [L]
# requests for category by name
RewriteRule ^cat/(.+)$ index.php?catalog/index/$1 [L]
# requests for item by name
RewriteRule ^link/(.+)$ index.php?item/review/$1 [L]
# All other queries get sent to the index as index.php/whatever
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
Code: Alles auswählen
(RewriteEngine on
RewriteBase /)
RewriteCond %{HTTP_HOST} !^domain\.de$
RewriteRule ^(.*)$ http://www.domain.de/$1 [L,R=301]