Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Would like to change the path to the store after installation.  I know those settings used to be in the configuration files, but I'm not sure that is still the way to go?

Posted

To elaborate -  Site was installed at an addon domain (i.e. maindomain.com/store_domain.com) because store_domain was pointing to old site while new site was being built.   Now site is live and store_domain.com.  So, to access the site now, you can go directly to store_domain.com, and the store looks great.  But, all the links still point back to maindomain.com/store_domain.com.  So, if you click on the Account link, you'll be taken to maindomain.com/store_domain.com/account, rather than store_domain.com/account.

Source code shows <base href="https://maindomain.com/store_domain.com/">

Have edited parts of includes/configure.php and admin/includes/configure.php, but base URL always goes back to the maindomain.com.

For instance, in admin/includes/configure.php, I updated 

defined('HTTP_SERVER') or define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers
defined('HTTPS_SERVER') or define('HTTPS_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

to 

defined('HTTP_SERVER') or define('HTTP_SERVER', 'http://store_domain.com'); // eg, http://localhost - should not be empty for productive servers
defined('HTTPS_SERVER') or define('HTTPS_SERVER', 'http://store_domain.com'); // eg, http://localhost - should not be empty for productive servers

but nothing changed.

Tried similar changes in includes/configure.php, but clicking a link always took me back to maindomain.com/store_domain.com rather than store_domain.com.

Are there other files that need to be updated as well?

Posted

Have also tried making changes in includes/local/configure.php files, but everything still redirects to maindomain.com.

Posted
On 7/10/2023 at 4:45 AM, Dani said:

Would like to change the path to the store after installation.  I know those settings used to be in the configuration files, but I'm not sure that is still the way to go?

To change frontend url, change Sales channel url into use Admin->Sales channel

image.thumb.png.58adbbc741132ea99fa54851c308dbc4.png

To change admin url, see this thread

 

Posted
Quote

To change frontend url, change Sales channel url into use Admin->Sales channel

Cannot thank you enough!  I've been pulling my hair out and totally missed it in the Sales Channel.  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...