Wordpress question - moving index.php

Discussion in 'Web Design and Development' started by torndownunit, Apr 6, 2010.

  1. torndownunit macrumors regular

    Joined:
    Jan 4, 2009
    #1
    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
     
  2. Darth.Titan macrumors 68030

    Darth.Titan

    Joined:
    Oct 31, 2007
    Location:
    Austin, TX
    #2
    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.
     

Share This Page