i have a wp site installed in a subfolder of a root directory, /new/ the site is soon to go live. i was thinking about going into the control panel and simply having the domain point to /new/ but ive been reading a wordpress book and i wondered if anyone could clarify if this would work instead: 1) go to general settings within wp-admin, change "wordpress address" url field to http://www.thedomain.com/new/ and the "blog address" field to http://www.thedomain.com 2) move my index.php and .htaccess files from /new/ to the root directory 3) open index.php in it's new location, and change: require('./wp-blog-header.php'); to require('./new/wp-blog-header.php'); 4) update permalinks (???*) im a bit worried to do this without clarification as i realise i may screw something up! *the book says about updating permalinks, and i wondered what youd actually need to update there..? thanks so much!
you can do this using .htaccess change the redirect option. but you need to install wordpress on your root directory first and update your .htaccess to 301 redirect help here Do not edit your wordpress files because you may mess with. Export your posts using WP Export plugin from subdirectory and copy db also. to update url you can use this plugin: http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/ Follow this ( http://wphacks.com/how-to-move-wordpress-blog-new-domain-name/ ) tutorial, its one of the best and easiest way to do.
sorry maybe i was unclear - my wp site is not moving to a whole new domain on a new server, just i want to point the domain at a subdirectory within the root of the domain where my wp site is hosted. so i was going to do this via the control panel, and then read about this method. i think perhaps you got the idea i was moving to a whole new domain??
to clarify: my wp install is here: www.domain.com/new - this is where people currently go to see the wp site. i want people to visit www.domain.com and see the wp site, and for all the urls of my pages and posts to not be: www.domain.com/new/page/ but www.domain.com/page my original question relates to this tutorial on the wordpress site: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory -- my one difference is, i have already installed the wp files in the subdirectory, whilst these instructions seem for a fresh install. i realise any links in posts/pages wouldnt work eg those to images. but would this work in context to my question?
Thanks jixxerrob Will i need to update anything else apart from links within my wp pages'/posts' copy? EG within the wordpress admin panel > Settings > "Wordpress Address" field or "Blog Address" field??
I believe you will need to adjust the settings in wordpress admin panel > Settings > "Wordpress Address" field or "Blog Address" field before you move the domain. That way once the domain is moved everything should line up properly and you will be able to blog away. I believe you can edit the database table if you move the domain name prior to updating the aforementioned settings, as I am under the impression that the blog address is located in the PHP database but am not certain of that. PM me if you still have issues and I'll see what I can do. Rob
i think you are slowly saving my life rob! thanks for this help. sorry if i am being slow about these things: -- So, the wordpress address would stay: www.domain.com/new -- the blog address would become: www.domain.com is that right? -- wow, i didnt realise i needed to edit any database things. when you say you "can" do you mean i must?? If i update this within admin panel > Settings will this not update wherever the blog address is located in the database?? If not, is this difficult? :/
ive started a new thread about this, specifically dedicated to the hosting/domain control panel option of pointing the domain to the /new/ directory: http://forums.digitalpoint.com/showthread.php?t=2174879
I always keep my blog address and wordpress address the same. I would change both of them to your preferred choice. Once you do that you will be logged out. That's when you can move the domain name to be over the top of the new folder. Based on my own experience, if you're moving the domain name then both wordpress and blog address will be the same.
Before you movie change the url in wordpress admin->general settings. after you set this you cant login unless you change the location of wordpress from sub directory to root. If you move without doing this then you cant open the admin page after the move and the changes need to be done in database which is a big head ache. Do cautiously.