- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did not create the site and I am new to magento, I downloaded the files and database locally, but when I visit the local link it redirects to the live site
my guess is I need to update some line in the code but I am lost as to were I need to make that change, can anyone help?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @alecom2go
Here are the steps will help you in change website URL on local server.
- Search for the core_config_data table in your database.
- Locate the rows web/unsecure/base_url and web/secure/base_url and click Edit next to the corresponding lines. Change the base URL with localhost URL.
- Flush the Magento cache, and the site should load with the set base URLs properly now.
I hope it will work for you.
Thanks
--
If my answer is useful, please Accept as Solution & give Kudos
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @alecom2go
Here are the steps will help you in change website URL on local server.
- Search for the core_config_data table in your database.
- Locate the rows web/unsecure/base_url and web/secure/base_url and click Edit next to the corresponding lines. Change the base URL with localhost URL.
- Flush the Magento cache, and the site should load with the set base URLs properly now.
I hope it will work for you.
Thanks
--
If my answer is useful, please Accept as Solution & give Kudos
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: moved magento from live to local, local redirects to live site
Please run this query on your Magento database.
SELECT * FROM `core_config_data` WHERE `path` LIKE 'web/%/%url'
and make sure all the links appearing in result are from your local host and not live site. Updating them solves the problem.
Like and give Kudos if it helps. 🙂