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

  1. TheFRZA
    Posted 2 years 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)

    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
    Posted 2 years 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.


  3. TheFRZA
    Posted 2 years ago #

    Sorry, RESOLVED

Topic Closed

This topic has been closed to new replies.

About this Topic