summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/site.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/site.erb b/templates/site.erb
index be92907..f02dbe0 100644
--- a/templates/site.erb
+++ b/templates/site.erb
@@ -3,6 +3,9 @@
ServerName <%= title %>.<%= hosting_domain %>
<% if server_alias != false %> ServerAlias <%= server_alias %><% end %>
DocumentRoot <%= docroot %>
+ <% if https_redirect != false %>
+ RewriteEngine On
+ RewriteRule (.*) https://<%= title %>.<%= hosting_domain %>$1<% end %>
<% 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| -%>