Browse Source

Redirect www to non-www.

master
vonavi 5 years ago
parent
commit
841f8ec180
2 changed files with 6 additions and 2 deletions
  1. +6
    -2
      .htaccess
  2. +0
    -0
      .openshift/markers/force_clean_build

+ 6
- 2
.htaccess 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]

+ 0
- 0
.openshift/markers/force_clean_build View File


Loading…
Cancel
Save