Skip to content
Snippets Groups Projects
Commit 0696305a authored by yrc1g20's avatar yrc1g20
Browse files

Upload New File

parent 39fc64b3
No related branches found
No related tags found
No related merge requests found
# Enable rewrite engine and route requests to framework
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteCond %{REQUEST_URI} \.ini$
RewriteRule \.ini$ - [R=404]
<FilesMatch "\.(ini|cfg|csv|bak|swp|swo|log|sql|sh|json|gitignore)$">
RewriteRule .* - [R=404,L]
</FilesMatch>
RewriteCond %{REQUEST_FILENAME} setup\.php$
RewriteRule .* - [R=404,L]
RewriteCond %{REQUEST_FILENAME} functions\.php$
RewriteRule .* - [R=404,L]
RewriteCond %{REQUEST_FILENAME} bootstrap\.php$
RewriteRule .* - [R=404,L]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* %{ENV:BASE}/index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment