Can I just move an install to a new folder to change URL?

[ad_1]

Possibly stupid question…

I moved a site from one server to another, so I have an old WordPress install on my old server, and I need access to the admin area. I’d rather not change the nameservers to point at my old server temporarily, so looking for a quick and easy way to get access to the old site’s admin area on my old server.
So…

Let’s say I have a URL [oldsite.com](http://oldsite.com) but I want it to be on the subdomain [sub.newsite.com](http://sub.newsite.com) – all the files and databases are on my server. Can I simply move the files from the [oldsite.com](http://oldsite.com) folder to the subdomain folder sub.newsite.com?

Anything else easy I can do?

[ad_2]
2 Comments
  1. Yep you can use a hosts file entry. A hosts file is a file on your computer that overrides global DNS, and makes DNS whatever the hell you want lol.

    You can make a hosts file entry that points the site URL back to the old IP just on your computer, and then you can access your admin. Look up how to edit your hosts file on whatever OS you are working with.

  2. It’s absolutely possible. This is actually the process of relocating the old site to the new site’s subdomain name. You can create the subdomain name [sub.newsite.com](http://sub.newsite.com) in the new site just like creating a new site, and then completely change the directory corresponding to the old site. Copy it to the subdomain name directory, then modify the configuration file wp-config.php database information in the directory, and finally replace the old site address in the database with the subdomain name using SQL statements.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer