The MU forums have moved to WordPress.org

Advice on Root Install - Root Contains index.php from Another App. (5 posts)

  1. awarner20
    Member
    Posted 15 years ago #

    I have searched the threads here and haven't found a solution that matches my situation.

    I have an application installed in the root of my site that uses an index.php file. I would like to install MU in the root to get the subdomain feature, and of course, it has an index.php file as well.

    The threads I've found talk about merging the existing index.php file with the home.php file, but this is referenced in relation to updating a static index page to work on top of WPMU, and not an application specific index.php.

    The application is a digital asset management app named ResourceSpace, found here http://www.montala.net/resourcespace.php

    I was wondering if any of you might share an opinion or two on what my options may be?

    Thanks in advance for your time.

  2. rudy3107
    Member
    Posted 15 years ago #

    which index u want to keep as domian index, application or wp.

  3. awarner20
    Member
    Posted 15 years ago #

    The application.

    However, I think I can safely move the app to a subdirectory and just link to it from the main wpmu page if needed.

    Just wanted to know how difficult things might be before making a decision.

  4. VentureMaker
    Member
    Posted 15 years ago #

    My bet would be to move your app away :) Even to separate domain.

  5. dsalon
    Member
    Posted 15 years ago #

    my wpmu is installed in the root and i've further independent content in subdirectories...

    the index.php shows like that

    <?php
    $host = split('\.', $_SERVER['HTTP_HOST']);
    switch ($host[0]) {
    case 'forum' :
    $location = 'http://yourdomain.com/forum' . $_SERVER['REQUEST_URI'];
    header("Location: $location");
    break;
    case 'home' :
    $location = 'http://yourdomain.com/home' . $_SERVER['REQUEST_URI'];
    header("Location: $location");
    break;
    case 'content' :
    $location = 'http://yourdomain.com/content' . $_SERVER['REQUEST_URI'];
    header("Location: $location");
    break;
    default :
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    break;
    }
    ?>

    it works...

    hope this might be helpful

About this Topic

  • Started 15 years ago by awarner20
  • Latest reply from dsalon