New WP install broke working sites --- Need ideas

Discussion in 'Third-party applications' started by appropriate, Sep 18, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I installed a new wordpress app in the subdirectory ./lidt. I just tried all of my sites that were working (i.e., come up with a blank page, no errors), none of them work unless I include the sub directory in the name. e.g., http://troop624.com/ does not work, but http://troop624.com/tstf/ does.

    By not working I mean they come up with a blank page with no errors.

    I did try to tweak index.php in my root directory, but still can't find any reason why. I added a "Loading..." in index.php to make sure it got there, and it did.

    I asked discountasp what happened and they won't give me any help saying it's a design issue. I think it may be a problem with the install. After all, the sites all worked.

    Below is what my index.php looks like...

    Any ideas would be great.

    ----- index.php ----

    <b> loading ..... </b>

    <?

    $SiteNameURL = $_SERVER['HTTP_HOST'];

    switch (strtolower($SiteNameURL)) {

    case "insureyoutoo.com": //MUST BE LOWER CASE
    header("Location: http://" . $_SERVER['HTTP_HOST'] . "/insureyoutoo/");
    break;
    case "www.insureyoutoo.com": //MUST BE LOWER CASE
    header("Location: http://insureyoutoo.com/insureyoutoo/");
    break;
    case "garrettbattaglia.info": //MUST BE LOWER CASE
    header("Location: http://" . $_SERVER['HTTP_HOST'] . "/gbi/");
    break;
    case "www.garrettbattaglia.info": //MUST BE LOWER CASE
    header("Location: http://garrettbattaglia.info/gbi");
    break;
    case "fifthdimensionsoftware.com": //MUST BE LOWER CASE
    header("Location: http://" . $_SERVER['HTTP_HOST'] . "/hs/");
    break;
    case "www.fifthdimensionsoftware.com": //MUST BE LOWER CASE
    header("Location: http://fifthdimensionsoftware.com/hs");
    break;
    case "troop624.com": //MUST BE LOWER CASE
    header("Location: http://" . $_SERVER['HTTP_HOST'] . "/tstf/");
    break;
    case "www.troop624.com": //MUST BE LOWER CASE
    header("Location: http://troop624.com/tstf/");
    break;
    case "lifeinsurancedallastexas.com": //MUST BE LOWER CASE
    header("Location: http://" . $_SERVER['HTTP_HOST'] . "/lidt/");
    break;
    case "www.lifeinsurancedallastexas.com": //MUST BE LOWER CASE
    header("Location: http://lifeinsurancedallastexas.com/lidt/");
    break;
    default:
    header("Location: http://" . $_SERVER['HTTP_HOST'] . "/InsureYouToo");
    }
    ?>


    ------
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Both links appear to be working for me. It seems like you're performing a redirect at this moment. You might want to double check your web.config files and to see if there are any inheritance issues.
     
  3. Fixed

    Thanks. I didn't do anything. It just started working. Don't know what the issue was. It wasn't my system. I tried on 4 different systems at 3 different locations. None worked, then they all worked. I guess one of those unexplained things.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page