http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
would be the technique I would use here. Levae most files in the /wp directory, but run it from root after removing the old site
Thread Starter
oo7ml
(@oo7ml)
Cool, thanks… is there any negative aspect to this approach… will everything still be ok after i upgrade to a new version of wordpress…
Is there any other method i could try, such as moving the old site to a sub directory and pointing to that until the new wordpress site is ready, thanks again for your help
There are a variety of things you can do. You could entirely move things around, etc. Whatever your preference is
I run my main site using the technique above, and have for years now. It’s nice as it keeps you from having all of WP’s files in the root directory … keeps things neat and organized. It also keeps from having to do a search and replace in the DB. WP hard writes full URLs for images in the database. If you move an install, you have to rewrite those, if you do the above, you don’t as the images still live in the /wp directory.
Thread Starter
oo7ml
(@oo7ml)
ok cool, thanks… my worry is that WP release a new update a year down the line and this affects all sites set up like this… π
Nope. I’ve had that setup since version 2.3 I think.
It’s not a hack setup, it’s an intended manner to run WordPress. So it’s 100% supported. I’ve never yet had an issue with upgrades of WordPress, plugins, or themes.
Thread Starter
oo7ml
(@oo7ml)
Ok, i’m gonna set up like this from now on…
Quick question…
01 – sometimes i set up site for clients on my server and then point their domain to it when it is live, for instance, i set the site up on clientname.myserver.com while the site is in development, then when it is ready, i point their domain to my server
02 – sometime i need to set the site up on one sever and then move it to another server, such as, i set it up on my server clientname.myserver.com when it is in development and then move it over to the clients original server (which is hosted by some other company)
How should i approach those 2 above, thanks again for your help, much appreciated π
01 – I have no experience with this… but since it seems like a URL change only I would assume
http://codex.wordpress.org/Changing_The_Site_URL
02 – http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change
I believe between those 2 documents, yuo should be able to handle everything
Like I mentioned, when you change the URL, some links in the DB will break. You can go into the DB and do manual stuff, but I’ve seen folks have pretty good success using
http://wordpress.org/extend/plugins/search-and-replace/ to handle the rewrites
Just do some setups and practice before trying to run through this stuff on client sites of course….
Thread Starter
oo7ml
(@oo7ml)
Ok cool, thanks for all your help π