Initial commit
This commit is contained in:
15
vendor/bedrock/resources/htaccess.html
vendored
Normal file
15
vendor/bedrock/resources/htaccess.html
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
RewriteEngine On
|
||||
RewriteBase {APP_WEB_ROOT}
|
||||
|
||||
# Intercepts other errors
|
||||
RewriteRule ^errors/(.*)$ index.php?error=$1 [L,NC,QSA]
|
||||
|
||||
# Intercept all traffic not originating locally and not going to images or uploads
|
||||
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
|
||||
RewriteCond %{REMOTE_ADDR} !^\:\:1
|
||||
RewriteRule ^(.+)$ {APP_WEB_ROOT}?url=$1 [QSA,L]
|
||||
|
||||
# Catchall for any non existent files or folders
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.+)$ {APP_WEB_ROOT}?url=$1 [QSA,L]";
|
Reference in New Issue
Block a user