Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 domain alias in Plesk but it's redirecting to https://www.domain1.com.

Any ideas please?

share|improve this question

closed as unclear what you're asking by Stephen Ostermiller Oct 3 '13 at 13:35

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
You want domain2 to effectively bypass your security certificate?! –  w3d Oct 1 '13 at 9:38
    
I've solved the issue the problem was the default domain for the IP that corresponds to the first domain. Now the problem would be how to enable SNI so SSL cert applies to both domains. Thanks for your help. –  user634177 Oct 1 '13 at 10:53
1  
With Plesk you can set a default certificate for all domains to use, but unless it's a UCC SSL, you'll get a browser warning for all but the one it was issued for. –  dan Oct 1 '13 at 12:39
add comment

1 Answer 1

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 ^.*$ https://%1/$1 [R=301,L]

Change it too something like:

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www.domain1.com [NC]
RewriteRule ^(.*)$ https://www.domain1.com/$1 [R=301,L]
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.