| 123456789101112131415161718192021222324252627282930313233 |
- DirectoryIndex index.php
- <IfModule mod_negotiation.c>
- Options -MultiViews
- </IfModule>
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{REQUEST_URI}::$0 ^(/.+)/(.*)::\2$
- RewriteRule .* - [E=BASE:%1]
- # Sets the HTTP_AUTHORIZATION header removed by Apache
- RewriteCond %{HTTP:Authorization} .+
- RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0]
- # Removes the /index.php/ part from a URL, if present
- RewriteCond %{ENV:REDIRECT_STATUS} =""
- RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
- # If the requested filename exists, simply serve it.
- # Otherwise rewrite all other queries to the front controller.
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ %{ENV:BASE}/index.php [L]
- </IfModule>
- <IfModule !mod_rewrite.c>
- <IfModule mod_alias.c>
- # When mod_rewrite is not available, we instruct a temporary redirect
- # to the front controller explicitly so that the website
- RedirectMatch 307 ^/$ /index.php/
- </IfModule>
- </IfModule>
|