Jump to content

Problem with 2 shops on same server


andrew2019

Recommended Posts

Hello,

I have a situation and I need some help.

My problem is:

- I have 2 shops  lets say www.shop1.com and www.shop2.com   hosted on Ubuntu server 18.04  server with different folder (/var/www/html/shop1 and /var/www/html/shop2) with the same public ip and also on cloudflare for ddos protection

- On www.shop1.com I have installed letsencrypt ssl and it working fine

- My problem is with shop2. I installed letsecrypt ssl for shop2 and when I click www.shop2.com it redirects me to www.shop1.com. I have done modification to .htaaccess according to a topic that I found on this forum but the problem is still the same. ( I have done this to .htaacces  <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] </IfModule>)

- The problem began when I installed letsencrypt on shop2 and the problem is with shop2.

- when I enter shop2.com its working fine but some client may enter www and it redirects them to https://www.shop1.com. 

- Remember :  2 shops are on same server with same public IP

Please I need to solve this issue 

Thanks in advance

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...