|
@@ -56,31 +56,6 @@ DirectoryIndex index.php index.html index.htm
|
|
<IfModule mod_rewrite.c>
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
RewriteEngine on
|
|
|
|
|
|
- # SSL
|
|
|
|
- # RewriteCond %{HTTPS} off [OR]
|
|
|
|
- # RewriteCond %{HTTP_HOST} ^materio\.com*
|
|
|
|
- # RewriteRule ^(.*)$ https://www.materio.com/$1 [L,R=301]
|
|
|
|
-
|
|
|
|
- # Redirect to HTTPS
|
|
|
|
- # RewriteCond %{HTTPS} off
|
|
|
|
- # RewriteCond %{HTTP:X-Forwarded-Proto} !https
|
|
|
|
- # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- # CUSTOMS
|
|
|
|
- # redirect all materiau domains to materio.com
|
|
|
|
- # RewriteCond %{HTTPS} off
|
|
|
|
- RewriteCond %{HTTP_HOST} ^basebeta\.materio\.com [OR]
|
|
|
|
- # RewriteCond %{HTTP_HOST} ^materio\.com [OR]
|
|
|
|
- RewriteCond %{HTTP_HOST} ^www\.materio\.fr [OR]
|
|
|
|
- RewriteCond %{HTTP_HOST} ^materio\.fr [OR]
|
|
|
|
- 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 [OR]
|
|
|
|
- RewriteCond %{HTTP_HOST} ^www\.materio\.com
|
|
|
|
- RewriteRule ^ http://materio.com%{REQUEST_URI} [L,R=301]
|
|
|
|
-
|
|
|
|
# Set "protossl" to "s" if we were accessed via https://. This is used later
|
|
# Set "protossl" to "s" if we were accessed via https://. This is used later
|
|
# if you enable "www." stripping or enforcement, in order to ensure that
|
|
# if you enable "www." stripping or enforcement, in order to ensure that
|
|
# you don't bounce between http and https.
|
|
# you don't bounce between http and https.
|
|
@@ -124,6 +99,30 @@ DirectoryIndex index.php index.html index.htm
|
|
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
|
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
|
# RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
|
|
# RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
|
|
|
|
|
|
|
|
+ # redirect all materiau domains to materio.com
|
|
|
|
+ # RewriteCond %{HTTPS} off
|
|
|
|
+ RewriteCond %{HTTP_HOST} ^basebeta\.materio\.com [OR]
|
|
|
|
+ # RewriteCond %{HTTP_HOST} ^materio\.com [OR]
|
|
|
|
+ RewriteCond %{HTTP_HOST} ^www\.materio\.fr [OR]
|
|
|
|
+ RewriteCond %{HTTP_HOST} ^materio\.fr [OR]
|
|
|
|
+ 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 [OR]
|
|
|
|
+ RewriteCond %{HTTP_HOST} ^www\.materio\.com
|
|
|
|
+ RewriteRule ^ http%{ENV:protossl}://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]
|
|
|
|
+
|
|
|
|
+ # Redirect to HTTPS
|
|
|
|
+ # RewriteCond %{HTTPS} off
|
|
|
|
+ # RewriteCond %{HTTP:X-Forwarded-Proto} !https
|
|
|
|
+ # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
+
|
|
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
|
|
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
|
|
# VirtualDocumentRoot and the rewrite rules are not working properly.
|
|
# VirtualDocumentRoot and the rewrite rules are not working properly.
|
|
# For example if your site is at http://example.com/drupal uncomment and
|
|
# For example if your site is at http://example.com/drupal uncomment and
|