Browse Source

Revert "Redirects naked domain to www"

This reverts commit 703d356492.
James Ravn 10 years ago
parent
commit
e3825cf6dd
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      roles/blog/templates/etc_apache2_sites-available_blog.j2

+ 1
- 5
roles/blog/templates/etc_apache2_sites-available_blog.j2 View File

@@ -2,7 +2,7 @@
2 2
     ServerName {{ domain }}
3 3
     ServerAlias www.{{ domain }}
4 4
 
5
-    Redirect permanent / https://www.{{ domain }}/
5
+    Redirect permanent / https://{{ domain }}/
6 6
 </VirtualHost>
7 7
 
8 8
 
@@ -24,8 +24,4 @@
24 24
     Options                 -Indexes
25 25
 
26 26
     HostnameLookups         Off
27
-
28
-    RewriteEngine on
29
-    RewriteCond %{HTTP_HOST} !^www\. [NC]
30
-    RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
31 27
 </VirtualHost>

Loading…
Cancel
Save