summaryrefslogtreecommitdiff
path: root/templates/site.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/site.erb')
-rw-r--r--templates/site.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/site.erb b/templates/site.erb
index 586b158..911d97a 100644
--- a/templates/site.erb
+++ b/templates/site.erb
@@ -26,6 +26,9 @@
</IfModule>
<% end %>
<% if canonical != false %>
+ <%- for canonical_exception in canonical_exceptions -%>
+ RewriteCond %{HTTP_HOST} !=<%= canonical_exception %> [NC]
+ <%- end -%>
RewriteCond %{HTTP_HOST} !=<%= canonical %> [NC]
RewriteCond %{HTTP_HOST} !=""
RewriteRule ^/(.*) <%= protocol %>://<%= canonical %>/$1 [L,R=301]