WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Giving WP its own directory/subdirectory Problem (3 posts)

  1. TheFRZA
    Member
    Posted 7 months ago #

    Hello, I'm having a problem, I'm trying to install wordpress in a pre existing sub directory, but I'm also using a multi-site , meaning that I have installed it in a subdirectory of my main domain name http://example.com/wordpress I'm trying to get it to redirect (well, take over the domain name) to http://example2.com

    my directory looks sort of like this:
    http://example.com (my main domain name)
    wordpress
    example2.com

    so i could just do ../wordpress/wp-blog-header.php' ); right?

    I've done this on a previous version of wordpress fairly easy, but maybe something changed.

    In this step: "Change the line that says:
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    to the following, using your directory name for the WordPress core files:
    require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
    Save the file.""

    I'm trying to put: " require( dirname( __FILE__ ) . '../wordpress/wp-blog-header.php' ); "

    So it will go back a directory then call all the contents of the http://example.com/wordpress files and show up on http://example2.com

    Thanks for any help you can give me!

  2. TheFRZA
    Member
    Posted 7 months ago #

    Hey I figured it out, the code changed from

    " require( dirname( __FILE__ ) . '../wordpress/wp-blog-header.php' ); "

    to: " require( dirname( __FILE__ ) . '/../wordpress/wp-blog-header.php' ); "

    You have to add a / now.

    Thanks!

  3. TheFRZA
    Member
    Posted 7 months ago #

    Sorry, RESOLVED

Reply

You must log in to post.

About this Topic