htaccess ssl

This commit is contained in:
Bachir Soussi Chiadmi 2015-11-24 12:26:56 +01:00
parent a5edc41323
commit 0a863fc1bb

View File

@ -71,8 +71,8 @@ DirectoryIndex index.php index.html index.htm
# downloaded.
RewriteRule "(^|/)\." - [F]
# redirect all materiau domains to materio.com
RewriteCond %{HTTPS} off
# redirect all materiau domains to materio.com
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^basebeta\.materio\.com [OR]
RewriteCond %{HTTP_HOST} ^materio\.com [OR]
RewriteCond %{HTTP_HOST} ^www\.materio\.fr [OR]
@ -80,10 +80,13 @@ DirectoryIndex index.php index.html index.htm
RewriteCond %{HTTP_HOST} ^www\.materio\.net [OR]
RewriteCond %{HTTP_HOST} ^materio\.net [OR]
RewriteCond %{HTTP_HOST} ^www\.materio\.eu [OR]
RewriteCond %{HTTP_HOST} ^materio\.eu [NC]
RewriteRule ^ http://www.materio.com%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^materio\.eu
RewriteRule ^ https://www.materio.com%{REQUEST_URI} [L,R=301]
# SSL
# RewriteCond %{HTTPS} off [OR]
# RewriteCond %{HTTP_HOST} ^materio\.com*
# RewriteRule ^(.*)$ https://www.materio.com/$1 [L,R=301]
# If your site can be accessed both with and without the 'www.' prefix, you