Update on .htaccess file
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 29 Sep 2016 18:47:42 +0000 (14:47 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 29 Sep 2016 18:47:42 +0000 (14:47 -0400)
This is to prevent other domains from getting to site and getting their
site url into the nav cache.

.htaccess

index 62544d0..fb16b54 100644 (file)
--- 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\.]+/