Two changes for #1491
Check for mod rewrite to be enabled
Correct the code which before was not redirecting on Apache 2.4 and nginx.

Please test.
This commit is contained in:
objecttothis
2017-09-05 22:37:44 +04:00
committed by GitHub
parent 887c8374b6
commit a77fd438c5

View File

@@ -1,8 +1,9 @@
# redirect to public page
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public$
RewriteRule ^(.*)/$ /public/ [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^public$
RewriteRule ^(.*)$ %{REQUEST_URI}public/ [R=301,L]
</IfModule>
# disable directory browsing
# For security reasons, Option all cannot be overridden.