w-jerome/mvc-base/master/.htaccess - Htaccess File

w-jerome/mvc-base/master/.htaccess

# OVH fix bug
SetEnv REGISTER_GLOBALS 0
SetEnv SESSION_USE_TRANS_SID 0

#Hidden file whitout index.html or index.php in the same folder
Options -Indexes

#Rewrite url for no redirect the user to "public" folder
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).(gif|jpg|png|jpeg|svg|css|js|swf|woff|woff2|ttf|eot)$ public/$1.$2 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/index.php?$1 [QSA,L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache