mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Added an entry about potential need of RewriteBase and tweaked the index.php rewrite rule
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user