From c1073fec0cb7fa0e1b7b60616e10cc6cdde9834e Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 24 Aug 2014 11:51:14 -0600 Subject: [PATCH] Different tweaks --- .htaccess | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.htaccess b/.htaccess index 1ecd2b921..cf009b98d 100755 --- a/.htaccess +++ b/.htaccess @@ -1,35 +1,39 @@ + Options -Multiviews RewriteEngine On +## # If you are getting 404 errors on subpages, you may have to uncomment the RewriteBase entry # You should change the '/' to your appropriate subfolder. For example if you have # your Grav install at the root of your site '/' should work, else it might be something # along the lines of: RewriteBase / +## -#RewriteBase / +# RewriteBase / -# access site +# Access site +RewriteCond %{REQUEST_URI} !^/index\.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)$ index.php [QSA,L] +RewriteRule .* index.php [L] -# block various user files from being accessed directly +# Block various user files from being accessed directly RewriteRule ^user/accounts/(.*)$ error [R=301,L] RewriteRule ^user/config/(.*)$ error [R=301,L] RewriteRule ^user/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ error [R=301,L] -# block cache +# Block cache/ RewriteRule ^cache/(.*) error [R=301,L] -# block bin +# Block bin/ RewriteRule ^bin/(.*)$ error [R=301,L] -# block system +# Block system/ RewriteRule ^system/(.*)$ error [R=301,L] -# block vendor +# Block vendor/ RewriteRule ^vendor/(.*)$ error [R=301,L]