My client have a site : business.com
All the files of the old fashion site is there, images, video, html, css. i just made a folder called business.com/cms and installed wordpress here. FOr 2 month they write stuff, upload images and do there site in wp. Now it’s time to lunch the site
The problem, all the images and page belong to business.com/cms not the root business.com. when i will remove the old site and put all the file from the cms folder at the root level, the site will miss a lot of thing, images and manually link pdf in text
How do you do that properly. Is itst possible to keep the site in /cms and used some .htaccess wizardry to make it look like root ?
HELP, need to lunch tomorrow !
Your easiest solution here is to keep everything in your cms folder.
and follow this step found at
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
This will keep all wordpress related files in the cms folder, but it will look like its running from the root, copy of index and some .htaccess wizardly as you call it :).
enjoy
In
Settings > General
change WordPress Address (URL) tohttp://business.com/cms
and Site Address (URL) tohttp://business.com
.The
index.php
file in root (not in cms/ directory)Then move
cms/config.php
in the root toconfig.php
.And also move .htaccess from
cms/
directory to root.Find the following lines if exist
and remove
cms/
string so you end up with the followingLet me know if something went wrong.
Wait…is it just me or no one thought suggesting a find & replace in the database might have fixed his problem..??
Find business.com/cms/ & replace it with “/” or “business.com”
And obviously moving the files from subfolder cms to the public_html…
All could have been done via ssh in seconds…