mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-08 17:08:04 -04:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user