public/.htaccess
author Markus Bröker<broeker.markus@googlemail.com>
Tue, 19 Sep 2017 13:04:18 +0200
changeset 51 bfcfa759003a
parent 49 611d4fe474d3
permissions -rw-r--r--
GSV ignorieren
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
     1
<IfModule mod_rewrite.c>
5
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
     2
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
     3
    # Enable rewrite engine
0
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
     4
    RewriteEngine on
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
     5
5
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
     6
    RewriteCond %{REQUEST_FILENAME} !-f
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
     7
    RewriteCond %{REQUEST_URI} !(.*)/$
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
     8
    RewriteRule ^(.*)$ /$1/ [R,L]
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
     9
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    10
    # Specify a base URL-path for the rules
0
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
    11
    RewriteBase /
5
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    12
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    13
    # zwei parameter
0
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
    14
    RewriteCond %{REQUEST_FILENAME} !-f
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
    15
    RewriteCond %{REQUEST_FILENAME} !-d
5
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    16
    RewriteCond %{REQUEST_URI} ^/(.*)/(.*)/$ [NC]
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    17
    RewriteRule .* index.php?controller=%1&action=%2 [L]
0
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
    18
5
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    19
    # ein parameter
0
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
    20
    RewriteCond %{REQUEST_FILENAME} !-f
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
    21
    RewriteCond %{REQUEST_FILENAME} !-d
5
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    22
    RewriteCond %{REQUEST_URI} ^/(.*)/$ [NC]
0cbee2939c40 htaccess: Umstellung auf 2 Parameter - /controller/action/
Markus Bröker <broeker.markus@googlemail.com>
parents: 0
diff changeset
    23
    RewriteRule .* index.php?controller=%1 [L]
0
4869aea77e21 Bröker-Framework BFW-1
Markus Bröker <broeker.markus@googlemail.com>
parents:
diff changeset
    24
</IfModule>