Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8440231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:14:03+00:00 2026-06-10T08:14:03+00:00

Local magento installation is redirecting me to our live test site rather than utilizing

  • 0

Local magento installation is redirecting me to our live test site rather than utilizing the local files. Index file is being read until Mage::run(), then the redirect occurs:

    Mage::run($mageRunCode, $mageRunType);

Details:
I pulled down the Magento system files and database from our live test environment and set them up on my local machine’s Linux environment. Everything seems to have gone smoothly, except when navigating to my root directory in a browser I am redirected to our live test site (rather than seeing my local files).

My question is… What code in the source configuration or database table would house the information for this redirect? I cleared the Magento cache using a script I found on Stack from someone with the same issue:

    require_once 'app/Mage.php';
    $app = Mage::app();

    echo "<pre>";

    if($app != null) {
      echo "The app was initialized.\n";
      $cache = $app->getCache();

      if($cache != null) {
           echo "The cache is not empty. Clean it.\n";
           $cache->clean();
      }  
    }

The asker says it was a cache issue, but the above script did not resolve my issue. I assume there is a configuration/cache file that houses an installation’s “root” directory, and that it is still pointing to our live site. I grepped through several of the directories to no avail.

Any assistance with this (and any other issue you think I may stumble across in this process) would be greatly appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:14:04+00:00Added an answer on June 10, 2026 at 8:14 am

    You need to change the value in the core_config_data mysql table:

    UPDATE core_config_data SET value=’http://live-site.com/’ WHERE
    path=’web/unsecure/base_url’

    and do the same for web/secure/base_url. If you have several shops you should also filter on scope/scope_id.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I took a backup of my live Magento site yesterday (zipped up the files
on my Magento site (not the real url ;) ), I have http://magento.local.com/media/ returning
I'm copying a Magento Enterprise 1.11.2.0 core file called Preview.php into the local folder
I just copied my magento site over to a local server running CentOS 5.4.
I have installation of magento 1.6.1 on local machine i\’m trying to connect magetno\’s
I am migrating Magento from one server to another. I created local.xml file but
I am attempting to copy a local file 'magento.tar.gz' from my local machine to
I am developing a Magento site. I have access to a local host and
For some reason my Product Page on a LOCAL Magento installation appears to be
I've just installed a local copy of Magento. For some reason, importing the sample

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.