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

  • Home
  • SEARCH
  • 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 3227030
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:31:36+00:00 2026-05-17T16:31:36+00:00

I want to create another instance of magento for development purposes. I’ve copied the

  • 0

I want to create another instance of magento for development purposes.

I’ve copied the site and the database and changed the connction string for the database.

However, when I go to log in to magento it re-directs to the live site http://www.example.com rather than going to the test url test.example.com.

Both instances exist on the same box.

After a bit of digging arund I think I need to change the root_dir, but not sure where to change this.

Can anyone help?

Thanks
Tom

— Edit —

I’ve updated the two fields in question in the database, but all urls still point to the production environment.

Do I have to run a specific script to update all of these across the whole site?

— Edit 2 —

There was more than one instance of the two urls in the table, after updating these and deleting the cache and sessions directories from the var folder everything worked.

  • 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-05-17T16:31:36+00:00Added an answer on May 17, 2026 at 4:31 pm

    You need to edit the database table “core_config_data”. Look for records with a path of “web/secure/base_url” or “web/unsecure/base_url” and you will see where to change the URL. You may need to clear the cache.
    You don’t need to change root_dir after all since that is automatic.

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

Sidebar

Related Questions

I have one big buffer image. I want to create another buffer image with
Imagine that I want to create an array from another array like this: $array
I want to create a method ( set ) that injects arguments into another
In visual studio 2005: I want to create a dll base on another dll.
What I want is to create a Model that connects with another using a
I need to create a table from another table but I only want the
We have an Oracle Enterprise database in production and another instance that we use
I want to position divs on top of one another. I have created a
I have created a class called Class1, and in another module, I want to
i want create multiple search where statement $where_search is a multiple condition from post

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.