WordPress.org

Ready to get started?Download WordPress

Forums

1.5 Different Directory Location (tip) (4 posts)

  1. AuntiAlias
    Member
    Posted 9 years ago #

    I just upgraded to 1.5. My main index.php file is in the site's root directory, and all my wordpress files are in a subdirectory. Like this:

    http://www.domainname.com/ [root directory]
    http://www.domainname.com/wp/ [standard wp directory]

    How I got the new 1.5 index.php to work:

    1. I copied the index.php file from the /wp/ directory for use in the root directory.
    2. Edited the new [root directory] index.php:

      Where it used to say: require('./wp-blog-header.php');

      I changed it to read: require('./wp/wp-blog-header.php');

      The addition of the wp/pointed to the proper location for all the files. Where there had been tons of ugly error messages, there is now beautiful blog.

    I figured that other people might be wondering how to do that. (now on to fix other things)

  2. miaow
    Member
    Posted 9 years ago #

    Thank you very much for this. I had tried to fix it like this, but forgot the leading slash!
    :o)
    B

  3. icebug
    Member
    Posted 9 years ago #

    Yes....
    I'm trying to do the exact opposite though...
    have all of WP run in another spot (not the main page or directory / root)
    I want the blog to be a site place to visit, not the dominating feature
    Do you know how to install it in another location?
    When I do, I have server problems for installation , etc etc
    It can fully be installed in the root directory, but then that creates an issue with my main website page.....eeeee
    any help would be appreciated

  4. I already answered your question in your own topic: http://wordpress.org/support/topic.php?id=28704

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.