Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

torndownunit

macrumors regular
Original poster
Jan 4, 2009
242
0
Hey there. I have a Wordpress install that is located in a /wordpress directory. Is it possible to move just the index.php file to the root and not the entire Wordpress install? If so, would anyone be able to give me a walk through?

Thanks
 
Not too difficult.

  • Login to your Wordpress admin and go to the options and change the 'blog address' to http://yoursite.com. The Wordpress address should stay http://yoursite.com/wordpress. Update the options. (this will probably cause errors until the next step)
  • Move index.php to the root.
  • Edit the index.php file. Find the line
PHP:
require('./wp-blog-header.php');
and change it to
PHP:
require('./wordpress/wp-blog-header.php');
That should do it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.