AliBrahem/AfrikIsol/master/src/.htaccess - Htaccess File

AliBrahem/AfrikIsol/master/src/.htaccess

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

# and from the symfony's original
<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        # When mod_rewrite is not available, we instruct a temporary redirect of
        # the start page to the front controller explicitly so that the website
        # and the generated links can still be used.
    RedirectMatch 302 ^/$ /app.php/
        # RedirectTemp cannot be used instead
    </IfModule>
</IfModule>

On Github License

Files

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

Comments

Apache