1
Fork 0

Redirect www to non-www.

master
vonavi 2014-07-01 18:09:10 +03:00
parent db846da8f5
commit 841f8ec180
2 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,12 @@
---
---
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
RewriteCond %{HTTP_HOST} ^site-lorchess.rhcloud.com$
RewriteRule (.*)$ {{ site.url }}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^site-lorchess\.rhcloud\.com$ [NC]
RewriteRule ^(.*)$ {{ site.url }}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]