Mobile app version of vmapp.org
Login or Join
Pierce454

: 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

@Pierce454

Posted in: #Plesk

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

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]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme