Created
September 5, 2020 21:13
-
-
Save apocsve/6846a4b2a050ba6de92bb07e3f890d3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
#### I MODIFIED HERE!!! | |
Options +FollowSymLinks | |
RewriteEngine On | |
## | |
## 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 / | |
## | |
## Black list protected files | |
## | |
RewriteRule themes/.*/(layouts|pages)/.*.htm index.php [L,NC] | |
RewriteRule uploads/protected/.* index.php [L,NC] | |
## | |
## White listed folders and files | |
## | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteCond %{REQUEST_URI} !\.js | |
RewriteCond %{REQUEST_URI} !\.ico | |
RewriteCond %{REQUEST_URI} !\.jpg | |
RewriteCond %{REQUEST_URI} !\.jpeg | |
RewriteCond %{REQUEST_URI} !\.gif | |
RewriteCond %{REQUEST_URI} !\.css | |
RewriteCond %{REQUEST_URI} !\.less | |
RewriteCond %{REQUEST_URI} !\.scss | |
RewriteCond %{REQUEST_URI} !\.png | |
RewriteCond %{REQUEST_URI} !\.swf | |
RewriteCond %{REQUEST_URI} !\.txt | |
RewriteCond %{REQUEST_URI} !\.xml | |
RewriteCond %{REQUEST_URI} !\.xls | |
RewriteCond %{REQUEST_URI} !\.eot | |
RewriteCond %{REQUEST_URI} !\.woff | |
RewriteCond %{REQUEST_URI} !\.ttf | |
RewriteCond %{REQUEST_URI} !\.svg | |
RewriteCond %{REQUEST_URI} !\.wmv | |
RewriteCond %{REQUEST_URI} !\.avi | |
RewriteCond %{REQUEST_URI} !\.mov | |
RewriteCond %{REQUEST_URI} !\.mp4 | |
RewriteCond %{REQUEST_URI} !\.webm | |
RewriteCond %{REQUEST_URI} !\.ogg | |
RewriteCond %{REQUEST_URI} !\.htm | |
RewriteCond %{REQUEST_URI} !docs/.* | |
RewriteCond %{REQUEST_URI} !themes/.* | |
RewriteRule ^ index.php [L,NC] | |
## | |
## Standard routes | |
## | |
#### AAAND I MODIFIED HERE!!! | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment