aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevan Radakovic <stevan.radakovic@linaro.org>2012-05-11 10:31:12 +0200
committerStevan Radakovic <stevan.radakovic@linaro.org>2012-05-11 10:31:12 +0200
commit37ad9876289b6d8b6ceeea4519c48277b725d052 (patch)
treef3d9adf2b6e375329e951f6f9faf7ad83369a9f1
parent1214201a060229bb0853aea1f2ea1a90bbabe196 (diff)
Incorrect parsing of the domain fixed
-rw-r--r--.htaccess4
1 files changed, 2 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess
index df272d6..6fa25d1 100644
--- a/.htaccess
+++ b/.htaccess
@@ -13,12 +13,12 @@ RewriteRule (.*\/)(.*) - [E=LP_DOWNLOAD_DIR:%1]
## without port number for use in cookie domain
RewriteCond %{SERVER_PORT} !^80$ [OR]
RewriteCond %{SERVER_PORT} !^443$
-RewriteCond %{HTTP_HOST} (.*)(\:.*)
+RewriteCond %{HTTP_HOST} ^([^:]*)$
RewriteRule .* - [E=CO_DOMAIN:%1]
RewriteCond %{SERVER_PORT} !^80$ [OR]
RewriteCond %{SERVER_PORT} !^443$
-RewriteCond %{HTTP_HOST} (^.*$)
+RewriteCond %{HTTP_HOST} ^([^:]*):(.*)$
RewriteRule .* - [E=CO_DOMAIN:%1]
## Let internal hosts through always.