.htaccess
author Markus Bröker<broeker.markus@googlemail.com>
Sat, 12 Dec 2015 12:43:57 +0100
changeset 29 42432a207bd0
parent 5 0cbee2939c40
permissions -rw-r--r--
NB-spezifische Ordner ignorieren

<IfModule mod_rewrite.c>

    # Enable rewrite engine
    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ /$1/ [R,L]

    # Specify a base URL-path for the rules
    RewriteBase /

    # zwei parameter
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/(.*)/(.*)/$ [NC]
    RewriteRule .* index.php?controller=%1&action=%2 [L]

    # ein parameter
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/(.*)/$ [NC]
    RewriteRule .* index.php?controller=%1 [L]
</IfModule>