From d477b34d2784722faaa0db99992f68d65602dad5 Mon Sep 17 00:00:00 2001 From: FreeScout Date: Fri, 12 Jul 2019 20:51:45 -0700 Subject: [PATCH] Do not allow to open app at /public/ --- .htaccess | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.htaccess b/.htaccess index e61ffe530..85b53cb01 100644 --- a/.htaccess +++ b/.htaccess @@ -2,5 +2,8 @@ # so we rewrite all web requests into /public folder RewriteEngine on + # On some hostings it does not work as "public/$1", but works as "/public/$1". + # But we can't write it as "/public/$1" because in this case it does not work + # when application is installed in subdirectory. RewriteRule (.*) public/$1 [L] \ No newline at end of file