Support » How-To and Troubleshooting » WP in its own directory

WP in its own directory

  • I tried searching and I can’t find anything on it. So it’s either I’m using the wrong keywords, or I’m just mega tired to search through all those threads.
    Anyway, I just wanted to know how to install WP in its own directory and then have the index file in the main directory. I found a tutorial on it with b2, so I just wanted to know what files I’m supposed to be editing and what parts in the index file do I need to change so it can point to the directory where I installed WP. Help? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andy Christian
    Contributor Day Volunteer


    move the index file into the base folder and change all of the lines that start with require( to include the directory. ie, if your directory is “/wp” change
    (notice there is no slash at the beginning.)
    The other option would be to put an index.php in your base directory that automatically redirects to /wp/
    header(“Location: http://www.yoursite.com/wp/“);

    Don’t I need to edit anything in the wp-blog-header.php? The b2 tutorial says something about editing the b2admin.php file and other stuffers, so I was wondering what other files I have to edit so this’ll work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP in its own directory’ is closed to new replies.