diff --git a/.htaccess b/.htaccess index 4fd10f335..ce48b2674 100644 --- a/.htaccess +++ b/.htaccess @@ -2,6 +2,17 @@ RewriteEngine On +## Begin RewriteBase +# 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 / + +## End - RewriteBase + ## Begin - Exploits # If you experience problems on your site block out the operations listed below # This attempts to block the most common type of exploit `attempts` to Grav @@ -19,17 +30,6 @@ RewriteRule .* index.php [F] # ## End - Exploits -## Begin RewriteBase -# 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 / - -## End - RewriteBase - ## Begin - Index # If the requested path and file is not /index.php and the request # has not already been internally rewritten to the index.php script