Forums

[resolved] "Hidden" WordPress & .htaccess (3 posts)

  1. dakotareese
    Member
    Posted 3 years ago #

    Hi,

    I'm working on installing WP on a domain that has an existing site with its own index.php. I want to set up the new WP site in the background rather than stage it elsewhere, etc.

    I changed the site's existing index.php and modified the .htacess file to include "DirectoryIndex home.php" and then installed WP.

    The public facing solution works fine and visitors are redirected to home.php. For some reason though, I can't directly access the new index.php that was uploaded during the WP install. When I try to access http://www.example.com/index.php, I get redirected to home.php.

    I have put a few other files in the root directory (test.html & test.php), and I can access those just fine.

    Anyone have any idea why this is happening? Thanks.

  2. irishb
    Member
    Posted 3 years ago #

    I don't have a ton of experience with modifying .htaccess files, but my gut tells me that any "index" page will be considered to be meant to redirect to the home page. If I can find a way to tell it to stop redirecting like that, I'll post here again.

  3. dakotareese
    Member
    Posted 3 years ago #

    Turns out this is a 2.7 issue, and is quite documented in the forums but it kind of tough to search for.

    The solution I found was to refer to:
    http://trac.wordpress.org/changeset/9203

    Replace the green code as seen in #9203 with the red code, in your /wp-includes/canonical.php file.

    Solution was found here: http://wordpress.org/support/topic/224098?replies=35

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags