To have your site load in the root of your domain name, when it’s installed in a /wordpress subdirectory, follow these instructions: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
Moving a Root install to its own directory? Is this what I have to do? Cause I think this is the opposite from what I want 🙂
Sorry, a beginner..
No, make sure you look under the header “Using a pre-existing subdirectory install“.
Right now, your site is at http://www.something.com/wordpress, and you’d like it to show up at http://www.something.com (without moving all the files and such), correct? If that’s the case, those instructions are what you need to follow.
ok, now i have done something really bad. I deleted /wordpress from both site and wordpress URL and now I cant login to the dashboard..
Any solution for that?
I’m not sure how far you were in the process (if you copied index.php and .htaccess already) so let’s start over.
First, add these two lines to your wp-config.php file:
update_option('siteurl','http://www.soomething.com/wordpress');
update_option('home','http://www.soomething.com/wordpress');
Of course, replace the domain name with your own domain name.
That should get the site up and running again at http://www.soomething.com/wordpress — make sure you then remove those two lines from wp-config.php again.
Now you can re-start that whole process of giving the site its own URL.