View Full Version : Giving WordPress its own directory
imincognita
08-17-2008, 04:18 PM
I want my blog address to be http://example.com instead of the WordPress address of http://example.com/wordpress.
I printed off the instructions located here;
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
but it all looks Greek to me. I have no idea where I'm supposed to create the new location for the core wp files. I also have no idea where to locate the index.php and .htaccess files to move them to the new location.
Are there more comprehensive instructions available somewhere. (Perhaps with images. LOL)
TIA
charlesp
08-18-2008, 01:14 AM
If you already have example.com/wordpress you don't need to create a new location. Leave your files there.
Go to http://www.example.com/wordpress/wp-admin, that's the dashboard. And that is where you make the changes under Settings -> General forget about Options. Go to -> Wordpress Address enter http://www.example.com/wordpress. For Blog Address enter http://www.example.com. After you make these changes move the index.htm and .htaccess files in the file manger from public_html/wordpress to public_html directory. That should be all that you need.
owencutajar
08-18-2008, 05:16 AM
There's actually a line change in index.php you need to do:
1. Go to your Options page. It should say your WordPress address and Blog address are the same. Change your Blog address to be http://example.com
2. Copy the index.php file from the wordpress directory into the root of your site.
3. Now open up index.php and change the line that says require('./wp-blog-header.php'); to be require('./wordpress/wp-blog-header.php');
4. Open up wp-config-sample.php and fill in your database details. Save and rename the file to wp-config.php.
5. Finally if you're using the mod_rewrite option for your blog URIs you'll need to go to Options › Permalinks to get the new rewrite rules and copy those to a .htaccess file at the root of your site.
From: http://wordpress.org/docs/installation/different-address/
imincognita
08-18-2008, 11:59 AM
Thank you both for your quick response. I'll give it a try.
imincognita
08-18-2008, 12:23 PM
I can't find the .htaccess files in public_html/wordpress. I found the index.php in there, but the other one must be in disquise. :confused:
Owen, I opened wp on my desktop and edited the db info before I installed it. So I shouldn't have to make those changes again, should I?
felgall
08-18-2008, 01:08 PM
A dot on the front of a filename indicates a hidden file. You need to set the program you are using to display hidden files in order to see the .htaccess
imincognita
08-18-2008, 01:41 PM
I had googled it and found that it was a hidden file. Seriously, I've been trying to find all this info on my own.... but all the instructions I've found assume I already know how and where to locate these files. I don't even know where/how to change my preferences to show all files. UGH.
UPDATE; Okay, I figured out how to show the hidden files. One hurdle down.
imincognita
08-18-2008, 02:33 PM
which directory am I supposed to be in when I move the index.htm and .htaccess files? Home or root? (I promise, I won't ask any more questions.)
charlesp
08-18-2008, 10:47 PM
To move the files you should be in the directory of the files you are moving. Put a check mark in the box along side the file name then click "Move" It will open a dialog box to give you an opportunity to select where you want it moved to.
imincognita
08-19-2008, 07:45 AM
charles, I have my file manager set to show hidden files. However, I can't find the .htaccess in example.com/wordpress. I can only locate that file in example.com. If I attmept to move only the index.php file from example.com/wordpress to example.com, it exposes my wp files on the site. :rolleyes:
This is giving me a headache.
To move the files you should be in the directory of the files you are moving. Put a check mark in the box along side the file name then click "Move" It will open a dialog box to give you an opportunity to select where you want it moved to.
imincognita
08-19-2008, 09:50 AM
I did it, I did it, I did it!
Thank you guys soooooo much. I'm doing the happy dance. :D
owencutajar
08-19-2008, 09:59 AM
Excellent mate!
imincognita
08-19-2008, 10:25 AM
Everything looked good from my dashboard, including the URL.
But when I googled the site, all I had was a list of links down the left side of the page. (sigh)
I undid everything again. I have no idea what to do next.
owencutajar
08-19-2008, 10:48 AM
I'm happy to give you a hand if you want.
If you PM me your MSN or Skype or GoogleTalk IM details, I'll see if I can give you a hand. (oh .. and URL would be good too)
Owen
imincognita
08-19-2008, 10:52 AM
owen, I'll get back to you a little later this afternoon if that's okay. I'd reaaalllly appreciate it. But I have to go watch the grandkids for about an hour.
pagan11460
08-31-2008, 12:25 PM
Hello... I installed my WP blog in it's own directory - called "site" and planned to just move the index.php page to the root directory, etc. but I screwed up! Instead of changing the Blog url from www.example.com/site/ to www.example.com/ --- I changed the WordPress url! And now I can't access my site. Does anyone know how to fix this? Any help would be greatly appreciated. If I can't fix this, I'll have to start from scratch. Thanks.
owencutajar
08-31-2008, 05:25 PM
Hello... I installed my WP blog in it's own directory - called "site" and planned to just move the index.php page to the root directory, etc. but I screwed up! Instead of changing the Blog url from www.example.com/site/ to www.example.com/ --- I changed the WordPress url! And now I can't access my site. Does anyone know how to fix this? Any help would be greatly appreciated. If I can't fix this, I'll have to start from scratch. Thanks.
Keep in mind that your options are stored in MySQL, so you should be able to use phpMyAdmin and go in and restore them back by hand. That should allow you to log in and try making the changes again
Regards
Owen
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.