From 0ffece7cb843b999246360b3d97f2cd61caf23bc Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Tue, 18 Sep 2018 18:15:34 +0400 Subject: [PATCH] Correct errors in redirect with advanced install This should cover the following scenarios 1- Install is in the root folder (www.example.com) 2- Install is in a subfolder (www.example.com/pos/) 3- Install is in an subdomain or subdomain and subfolder (pos.example.com or pos.example.com/abc) 4- User attempts to navigate to other subfolders (www.example.com/vendor). In each case the expected behavior is to redirect to URI/public as an external redirect with no errors. When testing PLEASE clear your browser cache/history and restart your browser. Most browsers have a bad habit of caching errors and then you don't know if you are getting a cached error or the current results. --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 4d3aa7a80..75ce364c4 100755 --- a/.htaccess +++ b/.htaccess @@ -2,7 +2,7 @@ RewriteEngine On RewriteCond %{REQUEST_URI} !^public$ - RewriteRule ^(.*)$ %{REQUEST_URI}public/ [R=301,L] + RewriteRule "^(.*)$" "/public/" [R=301,L] # disable directory browsing