: 2 domains, same website in plesk I have a domain with a SSL at https://www.domain1.com. I want that http://www.domain2.com shows the same website as domain1 (same website folder). I've tried with
I have a domain with a SSL at www.domain1.com.
I want that www.domain2.com shows the same website as domain1 (same website folder).
I've tried with domain alias in Plesk but it's redirecting to www.domain1.com.
Any ideas please?
More posts by @Pierce454
1 Comments
Sorted by latest first Latest Oldest Best
This is most likely happening as a result of a incorrect htaccess file, you are most likely have an entry somewhere that has your full domain name of the original. Edit all traces of the orginal htaccess file, however you will need one command that is set to domain1 because of the SSL. You might be using something like:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.(.*)
RewriteRule ^.*$ %1/ [R=301,L]
Change it too something like:
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www.domain1.com [NC]
RewriteRule ^(.*)$ www.domain1.com/ [R=301,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.