2014-05-14 23:21:55 +10:00
|
|
|
<IfModule mod_rewrite.c>
|
2015-06-10 22:11:29 +10:00
|
|
|
|
2014-05-14 23:21:55 +10:00
|
|
|
<IfModule mod_negotiation.c>
|
|
|
|
Options -MultiViews
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
RewriteEngine On
|
2014-05-16 10:01:50 +10: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 23:21:55 +10:00
|
|
|
|
|
|
|
##
|
|
|
|
## Black list protected files
|
|
|
|
##
|
2015-02-20 22:11:42 +11: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 11:22:34 +10:00
|
|
|
RewriteRule ^storage/temp/protected/.* index.php [L,NC]
|
|
|
|
RewriteRule ^storage/app/uploads/protected/.* index.php [L,NC]
|
2014-05-14 23:21:55 +10:00
|
|
|
|
|
|
|
##
|
|
|
|
## White listed folders and files
|
|
|
|
##
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f
|
2016-06-15 17:18:53 +10:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !^index\.php$
|
2016-06-13 10:08:12 +10:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.js$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.map$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.ico$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.jpg$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.jpeg$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.bmp$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.png$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.gif$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.svg$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.css$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.less$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.scss$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.pdf$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.swf$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.txt$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.xml$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.xls$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.eot$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.woff$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.woff2$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.ttf$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.flv$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.wmv$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.mp3$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.ogg$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.wav$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.avi$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.mov$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.mp4$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.mpeg$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.webm$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.mkv$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.rar$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !\.zip$
|
2014-05-14 23:21:55 +10: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>
|