Skip to content

Commit c07ecca

Browse files
authored
Modify .htaccess redirect rule
Change redirect rule to use [L] flag instead of [R=301]. The R=301 flag causes Apache to build an absolute URL including the port, breaking setups behind a reverse proxy.
1 parent a3cc88c commit c07ecca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RewriteEngine On
77

88
# Redirect requests that are not already under /Web to /Web.
99
RewriteCond %{REQUEST_URI} !^/Web(/|$)
10-
RewriteRule ^(.*)$ /Web/$1 [R=301,L]
10+
RewriteRule ^(.*)$ /Web/$1 [L]
1111

1212
#Header Set Access-Control-Allow-Origin "*"
1313
#Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"

0 commit comments

Comments
 (0)