• Hi,

    I have wordpress installed in /blog/ and I want my domain root index.html to appear identical to /blog/welcome/, but without actually 301’ing or 302’ing, I want the URL to still display the top level domain.

    I managed to mostly pull it off by putting this in my root level index.html:
    <?php $_SERVER['REQUEST_URI'] = 'blog/welcome/'; chdir('blog'); include 'index.php'; die();?>

    And this in my root level .htaccess:
    AddHandler application/x-httpd-php5 .html

    This seems to work beautifully, except for one minor little thing, which isn’t a big deal but it makes me slightly nervous. If I manually type in http://www.glowingfaceman.com/blog/welcome/ while logged in through wp-admin, I see the “Edit” link below the content, as usual. But if I go to http://www.glowingfaceman.com then I don’t see the “Edit” link. Not a huge deal (I seldom use that link anyway) but it makes me wonder why exactly that’s happening…

    Does it have something to do with PHP’s $_SESSION variables being directory-specific maybe?

    I’m a WP newbie but hoping to learn fast 🙂 Thanks for helping 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress and Redirecting Root Index.html’ is closed to new replies.