.htaccess
changeset 5 0cbee2939c40
parent 0 4869aea77e21
equal deleted inserted replaced
4:d9298ea00d20 5:0cbee2939c40
     1 <IfModule mod_rewrite.c>
     1 <IfModule mod_rewrite.c>
       
     2 
       
     3     # Enable rewrite engine
     2     RewriteEngine on
     4     RewriteEngine on
     3 
     5 
       
     6     RewriteCond %{REQUEST_FILENAME} !-f
       
     7     RewriteCond %{REQUEST_URI} !(.*)/$
       
     8     RewriteRule ^(.*)$ /$1/ [R,L]
       
     9 
       
    10     # Specify a base URL-path for the rules
     4     RewriteBase /
    11     RewriteBase /
       
    12 
       
    13     # zwei parameter
     5     RewriteCond %{REQUEST_FILENAME} !-f
    14     RewriteCond %{REQUEST_FILENAME} !-f
     6     RewriteCond %{REQUEST_FILENAME} !-d
    15     RewriteCond %{REQUEST_FILENAME} !-d
     7     RewriteCond %{REQUEST_URI} !(.*)/$
    16     RewriteCond %{REQUEST_URI} ^/(.*)/(.*)/$ [NC]
     8     RewriteRule ^(.*) $1/ [R,L]
    17     RewriteRule .* index.php?controller=%1&action=%2 [L]
     9 
    18 
       
    19     # ein parameter
    10     RewriteCond %{REQUEST_FILENAME} !-f
    20     RewriteCond %{REQUEST_FILENAME} !-f
    11     RewriteCond %{REQUEST_FILENAME} !-d
    21     RewriteCond %{REQUEST_FILENAME} !-d
    12     RewriteCond %{REQUEST_URI} (.*)/$ [NC]
    22     RewriteCond %{REQUEST_URI} ^/(.*)/$ [NC]
    13     RewriteRule ^(.*)/$ /?page=$1 [L,QSA]
    23     RewriteRule .* index.php?controller=%1 [L]
    14 </IfModule>
    24 </IfModule>