Multidomain .htaccess problem
Posted: Sat Dec 02, 2017 6:09 pm
Hello,
I use opencart 2.1.0.2
I have a webshop with ssl and an dutch extension ********.nl.
I have added a second store with an eu extension ********.eu.
It is intended that the .eu shop points to the .nl shop, but both should use there own urlname in the adress bar.
Both have non-www url's and i have a multidomain ssl certificate.
I have changed the dns, ********.eu has a pointers to the ip of ********.nl.
and i have created a alias for ********.eu on the ********.nl. domain.
This is my .htaccess:
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.********\.nl [NC]
RewriteRule ^(.*)$ https://********.nl/$1 [L,R=301,NC]
RewriteCond %{HTTP_HOST} ^www\.********\.eu [NC]
RewriteRule ^(.*)$ https://********.eu/$1 [L,R=301]
Unfortunately, just the ********.nl is visable in the address bar. (with ssl)
If i trie the ********.eu it still displays ********.nl
Can someone help me with the right .htaccess ?
Many thanks in advance
Best regards Ronny
I use opencart 2.1.0.2
I have a webshop with ssl and an dutch extension ********.nl.
I have added a second store with an eu extension ********.eu.
It is intended that the .eu shop points to the .nl shop, but both should use there own urlname in the adress bar.
Both have non-www url's and i have a multidomain ssl certificate.
I have changed the dns, ********.eu has a pointers to the ip of ********.nl.
and i have created a alias for ********.eu on the ********.nl. domain.
This is my .htaccess:
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.********\.nl [NC]
RewriteRule ^(.*)$ https://********.nl/$1 [L,R=301,NC]
RewriteCond %{HTTP_HOST} ^www\.********\.eu [NC]
RewriteRule ^(.*)$ https://********.eu/$1 [L,R=301]
Unfortunately, just the ********.nl is visable in the address bar. (with ssl)
If i trie the ********.eu it still displays ********.nl
Can someone help me with the right .htaccess ?
Many thanks in advance
Best regards Ronny