2014-05-14 13:21:55 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
2015-06-10 12:11:29 +00:00
|
|
|
|
2014-05-14 13:21:55 +00:00
|
|
|
<IfModule mod_negotiation.c>
|
|
|
|
|
Options -MultiViews
|
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
|
RewriteEngine On
|
2014-05-16 00:01:50 +00:00
|
|
|
|
|
|
|
|
##
|
|
|
|
|
## You may need to uncomment the following line for some hosting environments,
|
|
|
|
|
## if you have installed to a subdirectory, enter the name here also.
|
|
|
|
|
##
|
|
|
|
|
# RewriteBase /
|
2014-05-14 13:21:55 +00:00
|
|
|
|
|
|
|
|
##
|
|
|
|
|
## Black list protected files
|
|
|
|
|
##
|
2015-02-20 11:11:42 +00:00
|
|
|
RewriteRule ^themes/.*/(layouts|pages|partials)/.*.htm index.php [L,NC]
|
|
|
|
|
RewriteRule ^bootstrap/.* index.php [L,NC]
|
|
|
|
|
RewriteRule ^config/.* index.php [L,NC]
|
|
|
|
|
RewriteRule ^vendor/.* index.php [L,NC]
|
|
|
|
|
RewriteRule ^storage/cms/.* index.php [L,NC]
|
|
|
|
|
RewriteRule ^storage/logs/.* index.php [L,NC]
|
|
|
|
|
RewriteRule ^storage/framework/.* index.php [L,NC]
|
2015-04-25 01:22:34 +00:00
|
|
|
RewriteRule ^storage/temp/protected/.* index.php [L,NC]
|
|
|
|
|
RewriteRule ^storage/app/uploads/protected/.* index.php [L,NC]
|
2014-05-14 13:21:55 +00:00
|
|
|
|
|
|
|
|
##
|
|
|
|
|
## White listed folders and files
|
|
|
|
|
##
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.js
|
2015-01-11 21:42:42 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.map
|
2014-05-14 13:21:55 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.ico
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.jpg
|
2014-05-20 13:22:15 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.jpeg
|
2015-06-10 12:11:29 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.bmp
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.png
|
2014-05-14 13:21:55 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.gif
|
2015-06-10 12:11:29 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.svg
|
2014-05-14 13:21:55 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.css
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.less
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.scss
|
2014-06-10 21:31:11 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.pdf
|
2014-05-14 13:21:55 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.swf
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.txt
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.xml
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.xls
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.eot
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.woff
|
2015-01-28 07:28:35 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.woff2
|
2014-05-14 13:21:55 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.ttf
|
2015-06-20 00:28:16 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.flv
|
2014-05-20 13:22:15 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.wmv
|
2015-04-19 18:19:36 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.mp3
|
2015-06-20 00:28:16 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.ogg
|
2015-04-19 18:19:36 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.wav
|
2014-05-20 13:22:15 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.avi
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.mov
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.mp4
|
2015-06-20 00:28:16 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.mpeg
|
2014-05-20 13:22:15 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.webm
|
2015-06-20 00:28:16 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.mkv
|
2016-01-18 09:38:51 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !\.rar
|
|
|
|
|
RewriteCond %{REQUEST_URI} !\.zip
|
2014-05-14 13:21:55 +00:00
|
|
|
RewriteCond %{REQUEST_URI} !docs/.*
|
|
|
|
|
RewriteCond %{REQUEST_URI} !themes/.*
|
|
|
|
|
RewriteRule ^ index.php [L,NC]
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
## Standard routes
|
|
|
|
|
##
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
|
RewriteRule ^ index.php [L]
|
|
|
|
|
|
|
|
|
|
</IfModule>
|