From: Steve Sutton Date: Thu, 29 Sep 2016 18:47:42 +0000 (-0400) Subject: Update on .htaccess file X-Git-Tag: v1.0.34^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c4d8b3e47f4246f7e97ffeca3d736955576f4289;p=web%2FTroutCreek.git Update on .htaccess file This is to prevent other domains from getting to site and getting their site url into the nav cache. --- diff --git a/.htaccess b/.htaccess index 62544d0..fb16b54 100644 --- a/.htaccess +++ b/.htaccess @@ -18,9 +18,8 @@ AddDefaultCharset utf-8 # 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 %{HTTP_HOST} !^www\.troutcreek\. [NC] +RewriteRule ^(.*)$ http://www.troutcreek.com/$1 [R=301,L] # CacheBusting RewriteCond %{REQUEST_URI} v/[0-9\.]+/