cancel
Showing results for 
Search instead for 
Did you mean: 

moved magento from live to local, local redirects to live site

SOLVED

moved magento from live to local, local redirects to live site

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: moved magento from live to local, local redirects to live site

Hi @alecom2go 

 

Here are the steps will help you in change website URL on local server.

 

  1. Search for the core_config_data table in your database.
  2. 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.
  3. 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

View solution in original post

2 REPLIES 2

Re: moved magento from live to local, local redirects to live site

Hi @alecom2go 

 

Here are the steps will help you in change website URL on local server.

 

  1. Search for the core_config_data table in your database.
  2. 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.
  3. 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

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. 🙂