Htaccess File

w-jerome/focus/master/.htaccess

REQUEST_FILENAME
# 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]
Exit mobile version