summaryrefslogtreecommitdiffstats
path: root/htaccess.dist
diff options
context:
space:
mode:
Diffstat (limited to 'htaccess.dist')
-rw-r--r--htaccess.dist3
1 files changed, 3 insertions, 0 deletions
diff --git a/htaccess.dist b/htaccess.dist
index 37491e5..7605cb2 100644
--- a/htaccess.dist
+++ b/htaccess.dist
@@ -1,6 +1,9 @@
RewriteEngine On
RewriteBase BASE/
+# Rewrite www.domain.com to domain.com
+RewriteCond %{HTTP_HOST} ^www\.(.*)
+RewriteRule ^(.*) http://%1/$1 [R,L]
###
#### blogs