Added an entry about potential need of RewriteBase and tweaked the index.php rewrite rule

This commit is contained in:
Andy Miller
2014-08-24 11:33:29 -06:00
parent 6add01da97
commit 9367228800

View File

@@ -3,10 +3,17 @@ 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 /<your_sub_folder>
#RewriteBase /
# access site
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
RewriteRule ^(.*)$ index.php [QSA,L]
# block various user files from being accessed directly
RewriteRule ^user/accounts/(.*)$ error [R=301,L]