I'm new to OpenCart. I have 2 stores setup in my OpenCart 3.x installation (store1 and store2). And, I had hoped to have two different domain names, domain1.com and domain2.com, pointing to these respective stores. However, it is not working and I am not sure how to configure it. Regardless of if I visit domain1.com or domain2.com, both domains point me to store1 (the default store in OpenCart).
Here are configuration notes. Please let me know what I am doing wrong (or if this is even possible on my shared interserver hosting plan).
Configuration:
DNS Settings:
example1.com & example2.com have the same settings
Host:
interserver.net (Account type: 'Standard Web Hosting')
Cpanel:
example1.com
-'Main Domain' in cPanel
-Document Root: /public_html
(The directory where opencart is setup.)
example2.com
-'Add on Domain' in cpanel
-Document Root: /public_html
(The directory where opencart is setup.)
OpenCart Settings (Version: 3.0.3.2):
System > Settings
Store List
Store Name StoreURL
-------------------------------------------
Store 1 (Default) https://example1.com/
Store 2 https://example2.com/
config.php
// HTTP
define('HTTP_SERVER', 'https://example1.com/');
// HTTPS
define('HTTPS_SERVER', 'https://example1.com/');
Make sure you have the / at the end of the store url under admin / settings.
Also you may get some good info from this: viewtopic.php?t=27538
Mike
Also you may get some good info from this: viewtopic.php?t=27538
Mike
cue4cheap not cheap quality
Thank you Cue4cheap . I do have the trailing slashes (/) in the admin panel, but I realize I made a typo in my post. Thanks for pointing this out. I will update my post now to accurately reflect the fact that trailing slashes are present in the admin settings URLs.
Regarding the post, I actually ran across it yesterday while googling. I just went through it a second time but I think I did everything the same. I will 'triple check' tomorrow morning when my mind is fresh. That was nice of opencartisalright to take the time to post that for other users' benefit.
Regarding the post, I actually ran across it yesterday while googling. I just went through it a second time but I think I did everything the same. I will 'triple check' tomorrow morning when my mind is fresh. That was nice of opencartisalright to take the time to post that for other users' benefit.
Who is online
Users browsing this forum: No registered users and 211 guests