From a77fd438c51919a2aed815fca2e88751540a2cd4 Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Tue, 5 Sep 2017 22:37:44 +0400 Subject: [PATCH] Update to #1491 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. --- .htaccess | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index cc60b75be..4d3aa7a80 100755 --- a/.htaccess +++ b/.htaccess @@ -1,8 +1,9 @@ # redirect to public page -RewriteEngine On - -RewriteCond %{REQUEST_URI} !^/public$ -RewriteRule ^(.*)/$ /public/ [R=301,L] + + RewriteEngine On + RewriteCond %{REQUEST_URI} !^public$ + RewriteRule ^(.*)$ %{REQUEST_URI}public/ [R=301,L] + # disable directory browsing # For security reasons, Option all cannot be overridden.