Title: Seperate Directory
Last modified: August 18, 2016

---

# Seperate Directory

 *  [elvenjess](https://wordpress.org/support/users/elvenjess/)
 * (@elvenjess)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/seperate-directory/)
 * I would like to have the wordpress files reside in a seperate directory from 
   my root directory. How would I go about doing this?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/seperate-directory/#post-24928)
 * This isn’t really a hack, more like a just regular question.
    I would just make
   a new directory under your root and put all the files there. 🙂
 *  Thread Starter [elvenjess](https://wordpress.org/support/users/elvenjess/)
 * (@elvenjess)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/seperate-directory/#post-24937)
 * Ahh yes, but then I need to use includes to get it into my news page and that
   always give me a blank page instead of working.
 *  [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/seperate-directory/#post-24950)
 * I have used it before in a separate directory and didn’t need includes. You can
   put WP in many directories, have many blogs, just change the table names.
 *  [gfmorris](https://wordpress.org/support/users/gfmorris/)
 * (@gfmorris)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/seperate-directory/#post-24963)
 * The problem comes, southerngal, if you want to have WP in a directory structure
   outside of your root [say, /wordpress/] but have the main page of your site [/
   index.php] be modified by WP.
    There are other threads complaining about this
   issue. 🙂
 *  Thread Starter [elvenjess](https://wordpress.org/support/users/elvenjess/)
 * (@elvenjess)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/seperate-directory/#post-25001)
 * That is exactly what I want to do, gfmorris. 🙂
    Sooo… Anybody got ideas/hacks?
   😉
 *  Anonymous
 * [22 years, 7 months ago](https://wordpress.org/support/topic/seperate-directory/#post-25003)
 * bigmoose: i have mine set, i have the index page outside, i have just changed
   these lines
    [/index.php] <?php /* Don’t remove this line, it calls the b2 function
   files ! */ $blog=1; require_once(‘b2/blog.header.php’); require($abspath.’wp-
   links/links.php’); ?> <?php include(‘b2/b2comments.php’); ?> and all other includes
   with the /b2 dir — [/b2] and i also have the same index.php file inside the /
   b2 dir but with these settings <?php /* Don’t remove this line, it calls the 
   b2 function files ! */ $blog=1; require_once(‘blog.header.php’); require($abspath.’
   wp-links/links.php’); ?> <?php include(‘b2comments.php’); ?> — it seems to work
   fine so far, although i kinda now have 2 index pages, but the /b2/index.php only
   displays when i want to check archives/calendar/comments hope this helps! [http://www.thekiwi.com](http://www.thekiwi.com)
   if u want to see how it works
 *  [bigmoose](https://wordpress.org/support/users/bigmoose/)
 * (@bigmoose)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/seperate-directory/#post-25005)
 * lol, i seem to be hyaving problems with this now since upgrading to .72! will
   fix her later
 *  Thread Starter [elvenjess](https://wordpress.org/support/users/elvenjess/)
 * (@elvenjess)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/seperate-directory/#post-25032)
 * Well, please post it here if you get it going! 😀
 *  [joshuaclinard](https://wordpress.org/support/users/joshuaclinard/)
 * (@joshuaclinard)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/seperate-directory/#post-25035)
 * I’ve had this working with both b2 and wordpress. With wordpress, there are no
   file changes to make. All you have to do is modify the paths. WordPress is located
   in /news/, which is a directory inside the root, and index.php is located in 
   root. The files below are the places I have changed the paths, both located in
   the index file. The first line also appears in archives.php. No other changes
   are needed.
    <?php /* Don’t remove this line, it calls the b2 function files !*/
   $blog=1; include (“news/blog.header.php”); ?> <?php include (“news/b2comments.
   php”); ?>
 *  Thread Starter [elvenjess](https://wordpress.org/support/users/elvenjess/)
 * (@elvenjess)
 * [22 years, 6 months ago](https://wordpress.org/support/topic/seperate-directory/#post-25223)
 * Been away for a while, has anyone come up with anything?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Seperate Directory’ is closed to new replies.

 * 10 replies
 * 6 participants
 * Last reply from: [elvenjess](https://wordpress.org/support/users/elvenjess/)
 * Last activity: [22 years, 6 months ago](https://wordpress.org/support/topic/seperate-directory/#post-25223)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
