Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 12:55:52 PM

Pages: [1]   Go Down
  Print  
Author Topic: Transferring a wordpress installation from an addon domain to main domain?  (Read 342 times)
Feesir
Newbie
*
Offline Offline

Posts: 1


« on: December 30, 2011, 01:04:29 PM »

I'm putting together a Wordpress website for a client. I've added an Addon Domain to his Lunarpages account and installed Wordpress there and plan to get the site completely setup on the Addon Domain first. Once he is satisfied, I would like to just transfer the whole thing to his main domain that he has through Lunarpages.

I want to do it this way because I am transferring content from his main Lunarpages domain to the Addon Domain. I just want to make sure it will be possible to transfer the entire website over to the main domain, and if so, what would be the best way of doing it?

Thanks in advance.
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Online Online

Posts: 5220



« Reply #1 on: December 30, 2011, 06:02:04 PM »

My recommendation is to always install a major subsystem such as Wordpress into its own directory under the site home. That way it's cleanly separated from site general files (error documents, robots.txt, .htaccess, etc.) and from other subsystems you may install in the future. You either install a "landing page" at the site root, with links to the subsystems, or (so long as Wordpress is the only subsystem installed) use an .htaccess URL rewrite to invisibly shift a visitor from the root into the Wordpress subsystem.

As you will be shifting an existing WP installation from one directory to another, it would be primarily a matter of copying over all the files in the WP tree to another directory (preserving the tree structure). You might even be able to just drop the add-on (did you mean subdomain?) and leave its directory (say, /blog) and all the files in place. Either way, there's bound to be at least one WP configuration file containing the blog's URL and path to its root, that needs to be updated. I'm not familiar with the details of WP, but for SMF there is a "repair_settings.php" utility to guide you through this process. Ask on the WP support site if there is such a tool for WP, or if not, what things need to be manually updated to move an installation, or scan all files for the URL and paths used in the installation. There will probably be no reason to make any changes to the database itself, but there might be URL- or path-dependent information stored somewhere in the database that would need to be updated too.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: