WordPress.org

Ready to get started?Download WordPress

Forums

WP in its own directory (3 posts)

  1. fifteen
    Member
    Posted 10 years ago #

    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? :)

  2. 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
    require('wp-blog-header.php');
    require('wp/wp-blog-header.php');
    (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/
    <?php
    header("Location: http://www.yoursite.com/wp/");
    exit;
    ?>
    -Andrew
    http://forever.chronolink.net/

  3. fifteen
    Member
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.