Fractal Posted September 17, 2017 Share Posted September 17, 2017 Hi I´m trying to replicate my site on a local machine for testing purposes but when I try to open the Public_html I'm been redirected to the production site. How can I accomplish this? I'm using as reference this link Thanks in advance. Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 18, 2017 Share Posted September 18, 2017 Welcome Fractal! Glad to see you made it to the forum. Your local development environment may be using "localhost" or (recommended) 127.0.0.1. If your environment also includes your own dedicated DNS resolver in your firewall, that may help when you create a specific subdomain, such as localtest.fractal.com. When having copied the files to your local machine, you should delete everything in the /cache/ folder except the .htaccess file. There may be files in here that contain complete URLs to the site they were copied from. Then, in /includes/global.inc.php, add statements to force an override over the store's address. See:https://forums.cubecart.com/topic/52829-clean-install-6110-add-to-basket-not-working/?tab=comments#comment-228794 Quote Link to comment Share on other sites More sharing options...
Fractal Posted September 18, 2017 Author Share Posted September 18, 2017 1 hour ago, bsmither said: Welcome Fractal! Glad to see you made it to the forum. Your local development environment may be using "localhost" or (recommended) 127.0.0.1. If your environment also includes your own dedicated DNS resolver in your firewall, that may help when you create a specific subdomain, such as localtest.fractal.com. When having copied the files to your local machine, you should delete everything in the /cache/ folder except the .htaccess file. There may be files in here that contain complete URLs to the site they were copied from. Then, in /includes/global.inc.php, add statements to force an override over the store's address. See:https://forums.cubecart.com/topic/52829-clean-install-6110-add-to-basket-not-working/?tab=comments#comment-228794 Awesome, thanks. that works partially. Now the redirection is going to my local site but instead of the home page I'm receiving the "Store is currently offline." message Regards Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 18, 2017 Share Posted September 18, 2017 In admin, Store Settings, Offline tab, set "Take store offline?" to No. Quote Link to comment Share on other sites More sharing options...
Fractal Posted September 18, 2017 Author Share Posted September 18, 2017 3 minutes ago, bsmither said: In admin, Store Settings, Offline tab, set "Take store offline?" to No. Thanks again. Regards Quote Link to comment Share on other sites More sharing options...
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.