Dani Posted July 10, 2023 Posted July 10, 2023 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? Quote
Dani Posted July 11, 2023 Author Posted July 11, 2023 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? Quote
Dani Posted July 11, 2023 Author Posted July 11, 2023 Have also tried making changes in includes/local/configure.php files, but everything still redirects to maindomain.com. Quote
pandrei Posted July 11, 2023 Posted July 11, 2023 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 To change admin url, see this thread Quote
Dani Posted July 11, 2023 Author Posted July 11, 2023 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. Quote
Recommended Posts
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.