Joey-Peau/OHT/master/www/.htaccess - Htaccess File

Joey-Peau/OHT/master/www/.htaccess

SetEnv SHORT_OPEN_TAGS 0
SetEnv REGISTER_GLOBALS 0
SetEnv MAGIC_QUOTES 0
SetEnv SESSION_AUTOSTART 0
SetEnv ZEND_OPTIMIZER 1
SetEnv PHP_VER 5_3

#Redirige directement sur www.
#RewriteCond %{HTTP_HOST} ^orchestre-harmonie-thaon.fr$
#RewriteRule ^(.*) http://www.orchestre-harmonie-thaon.fr/$1  [QSA,L,R=301]

DirectoryIndex app.php

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$
    RewriteRule ^(.*) - [E=BASE:%1]
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^app.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .? - [L]
    RewriteRule .? %{ENV:BASE}/app.php [L]
</IfModule>

<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        RedirectMatch 302 ^/$ /app.php/
    </IfModule>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, HTTP_HOST, REDIRECT_STATUS, REQUEST_FILENAME, REQUEST_URI

Comments

Apache