summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/site.erb2
1 files changed, 1 insertions, 1 deletions
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| -%>