AbdelmalekBouzazi/phpproject1/master/web/.htaccess - Htaccess File

AbdelmalekBouzazi/phpproject1/master/web/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On

    #<IfModule mod_vhost_alias.c>
    #    RewriteBase /
    #</IfModule>

    # redirect to URI without front controller to prevent duplicate content
    RewriteRule ^app.php(/(.*)|$) /$2 [R=301,END]

    # rewrite requests to non-existent files to front controller
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ app.php [END]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache