From b9aa3c0d2d3cc594f57a6a02828f11c650657b3a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 25 May 2012 11:21:26 -0300 Subject: Adding support for canonical_exceptions --- templates/site.erb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates') 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 @@ <% 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] -- cgit v1.2.3