Question:
how can I install & work on a new wordpress site without taking my existing pages offline?
Johnpea
2010-11-12 06:12:49 UTC
I have a site that generates income every day but I want to replace the existing HTML pages with a wordpress blog. It will take several days to add all the content etc. I want to add all the content then switch over from old to new. How can I do all his without my existing site being affected?
Eight answers:
John Willey
2010-11-15 13:06:58 UTC
Install a new version of wordpress in another directory. Changing base dir in wordpress is very easy
anonymous
2010-11-12 06:23:07 UTC
I haven't looked at the install procedure for wordpress, but it should be ok if you go into filemanager, create new folder, name it anything, maybe 'test'. Upload wordpress to the 'test' folder, create a database for it then follow the wordpress install procedure. You can then get to the wordpress folder by simply typing your url and adding /test to the end. Once you've transferred all your content from one site to the other, you will need to 'swap'. Your database settings will need to be changed, probably from within config.php these will mainly refer to the url and path to directory. If you're still unsure, just edit and i'll look a bit deeper into the wordpress install procedure for you.



Thank JK for the addendum, haven't used wordpress so wasn't so sure about the final touches. However i would add that it's not necessary to downlod the files.

After it's all set up and updated ready to go, go into the directory of your old site which is probably public_html. Use the select all function then un-tick the folder that holds the new site, in my example 'test'. Select the delete button to get rid of all the old files, leaving only the new wordpress folder.

Now, just in case there's a hiccup, open the wordpress folder, use select all, then use the 'copy' button. Copy them all out of the new folder, so if the folder name is 'test' (public_html/test) delete the word 'test' from the url offered to you. Now your site will be in the public_html folder AND still in the original folder. So if anything goes wrong you've still got the site in 'test'. Once you've set the correct url's and you're happy that it's all functioning you can then delete the 'test' folder.
.
2010-11-12 06:36:16 UTC
Chris is correct but left out one detail. After you have the wordpress site setup and ready to go, you need to download all of those files (keep the wordpress folder for now), download and delete the original files, then reupload the files in the wordpress folder - but don't upload the folder.



Then, you go into the wordpress admin in the wordpress folder, go to Settings/General settings and change your urls - wordpress url and site url from blah.com/wordpress folder to blah.com



Save changes and you should be good to go. You might have to go back in to the new wordpress admin and reset permalinks by clicking save, but that's it.
detkowski
2016-10-22 02:13:56 UTC
installation a clean topic will have not got any result on your cutting-edge WordPress posts and pages. as long as you do no longer delete the posts or pages by WordPress, you would be fantastic while installation your new topic.
Dave
2010-11-12 06:53:45 UTC
Install wordpress in a new folder called /wordpress and proceed to set it up as normal.

In the Wordpress Dashboard go to the Settings Menu and click on General. On this page there are two options: WordPress address (URL) and Site address (URL).



On initial setup set both of these to http://www.yoursitename.com/wordpress (obviuosly replacing yoursitename.com with your own domain)



Once you are ready to go live change the Site Address to http://www.yoursitename.com



See http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory for a full set of instructions
t_virus
2010-11-12 06:23:20 UTC
you can make new installation of wordpress in a subdirectry (ex. root/newblog)

\work on it and once your work is complete>>



go to

cPanel>>Domains>>Manage Redirects



select "permanent (301)" in redirect type



and type the URL of your new installation in "redirects to" field >>>> click "add" button.



****you may delete your old site files now as your website address (www.yoursite.tld) will take users to new address (www.yoursite.tld/newblog)
PooBear
2010-11-12 06:23:44 UTC
What not put your wordpress site in a different location, then once its ready move it over.



So http://yoursite.com/wordpress, and once your ready move it to the root directory where your current HTML site is.
OneLifeLiveIt
2010-11-15 07:39:41 UTC
Don't forget to make sure the link structure is SEO compliant also.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...