The MU forums have moved to WordPress.org

Can i change the index.php after installation? (3 posts)

  1. Anonymous
    Unregistered
    Posted 15 years ago #

    I installed wordpress mu on the root but i dont want it to be the home i have a forum folder and i want that to load first on my add http://www.mysite.com

    can i change the index.php after installation to redirect to my forum

    if it ok this the code ill put to index.php

    <?php
    if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
    $uri = 'https://';
    } else {
    $uri = 'http://';
    }
    $uri .= $_SERVER['HTTP_HOST'];
    header('Location: '.$uri.'/forum/');
    exit;
    ?>

  2. VentureMaker
    Member
    Posted 15 years ago #

    Try it :)

  3. andrea_r
    Moderator
    Posted 15 years ago #

    LOL.

About this Topic

  • Started 15 years ago by tresehulyo
  • Latest reply from andrea_r