-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subdirectory URL without trailing slash causes 403 error #19
Labels
Comments
Thanks for this, I have updated the .htaccess seed file, since the .htaccess file is treated like a config file, it should be updated manually. (The update process will not touch this file) New contents:
All fixed on my end. |
Please reopen if this is still occuring. |
i'm sorry but can you help me if i want to add trailing slash to url how my code must look like? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When putting October into a subdirectory, it only works when adding the trailing slash to the URL (http://localhost/october/). The URL without trailing slash (http://localhost/october) will display a 403 error or the directory listing.
To fix this issue, add the following to the .htaccess file:
RewriteOptions AllowNoSlash
Info: https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteoptions
When installing to a subdirectory, a
RewriteBase
should also be set in the .htaccess. It would be great if this could be automated during the install (since it's one of my most heard questions when installing a CMS), but this might as well be just a little note in the installation doc.The text was updated successfully, but these errors were encountered: