From: Leif Hanson Date: Fri, 7 Jun 2013 15:54:12 +0000 (+0000) Subject: Putting .htaccess back to right. X-Git-Tag: v1.0~129 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=31b708aa91ab775110f7a9ec5e9cab8ba5094ba9;p=web%2FMichiganTrailMaps.git Putting .htaccess back to right. --- diff --git a/.htaccess b/.htaccess index acd7267..8fccc5c 100644 --- a/.htaccess +++ b/.htaccess @@ -14,13 +14,13 @@ ErrorDocument 404 /404.html RewriteEngine On AddDefaultCharset utf-8 -RewriteBase /~leif/www.michigantrailmaps.com/ +RewriteBase /www.michigantrailmaps.com/ # Redirect non-www to www -#RewriteCond %{ENV:GLM_HOST_ID} PRODUCTION -#RewriteCond %{HTTP_HOST} !^www\. [NC] -#RewriteCond %{HTTP_HOST} !^demo\. [NC] -#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] +RewriteCond %{ENV:GLM_HOST_ID} PRODUCTION +RewriteCond %{HTTP_HOST} !^www\. [NC] +RewriteCond %{HTTP_HOST} !^demo\. [NC] +RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # CacheBusting RewriteCond %{REQUEST_URI} v/[0-9\.]+/