w-jerome/focus/master/.htaccess - Htaccess File

w-jerome/focus/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 "web" folder
RewriteEngine On

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

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

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache