projects
/
web
/
MichiganTrailMaps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d040e
)
Update .htaccess file for the site
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 29 Sep 2016 18:35:16 +0000
(14:35 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 29 Sep 2016 18:35:16 +0000
(14:35 -0400)
for cache only domain
.htaccess
patch
|
blob
|
history
diff --git
a/.htaccess
b/.htaccess
index
523d52b
..
1cb2843
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\.michigantrailmaps\. [NC]
+RewriteRule ^(.*)$ http://www.michigantrailmaps.com/$1 [R=301,L]
# CacheBusting
RewriteCond %{REQUEST_URI} v/[0-9\.]+/