From 03a5f804a20b98ccea8598aa7893c914c7fa1ee6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 5 Dec 2011 18:24:37 -0200 Subject: Better RewriteRule --- templates/site.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/site.erb') diff --git a/templates/site.erb b/templates/site.erb index f02dbe0..25dd22d 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -5,7 +5,7 @@ DocumentRoot <%= docroot %> <% if https_redirect != false %> RewriteEngine On - RewriteRule (.*) https://<%= title %>.<%= hosting_domain %>$1<% end %> + RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} <% if redirect_match != false %> RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= hosting_domain %>/<%= redirect_match %><% end %> <% if redirect != false %> Redirect <%= redirect %><% end %> <% if aliases != false %><% aliases.each do |map| -%> -- cgit v1.2.3