mirror of
https://github.com/getgrav/grav.git
synced 2025-11-02 11:26:02 +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
|
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
|
# access site
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule . index.php [L]
|
RewriteRule ^(.*)$ index.php [QSA,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/accounts/(.*)$ error [R=301,L]
|
||||||
|
|||||||
Reference in New Issue
Block a user