The MU forums have moved to WordPress.org

Rewrite URL different from default install location (7 posts)

  1. Schmee
    Member
    Posted 14 years ago #

    Hello,

    This is probably a newbie question however I have searched around for a solution and can't resolve this.

    Basically I have a Mu install (IIS 6.0 - Windows Server 2003) that has several sites: http://www.MYSITE/blogs/subsite01, http://www.MYSITE/blogs/subsite02, http://www.MYSITE/blogs/subsite03. Each site is operational and has a unique theme attached.

    I would like to be able to enter http://www.MYSITE/subsite01 and load the related site content, without redirecting to the actual address (www.MYSITE/blogs/subsite01). Editing from that URL would be a great plus also.

    Any thoughts/comments? I do realize that I'll need a defined container for the WP content in the "new" location" however I'm at a loss as how to do so.

    Thanks for any assistance!
    - Billy

  2. sspd
    Member
    Posted 14 years ago #

    I'm actually trying to do the same thing, but have yet to get an answer other than "you can't." The problem with MU is that it creates virtual subdirectories for each blog, so there isn't a physical file that you can redirect to. Which means that the method that works to point from the root to /blogs won't for for /blogs/subsite01.

    The next thing I'm going to attempt is to convert my existing HTML pages into static WPMU pages which, in theory, would re-create all the sites within the virtual directories. That's kind of a pain, and to me seems a skosh counter intuitive, but MU's got enough features I like over standard WP that I'm giving it this one more shot.

    I'll let you know how it goes.

  3. tim.moore
    Member
    Posted 14 years ago #

    To get URLs like http://www.example.com/blog1 and http://www.example.com/blog2, you should install WPMU in the root folder of your server. That way, http://www.example.com will be your root blog, and each subblog will be /blog1, /blog2, etc.

  4. Schmee
    Member
    Posted 14 years ago #

    SSPD - thanks for the info concerning the virtual dirs. Will let you know if we figure anything out.

    As for static-ing your pages do you mean building a standard html page and embedding a blog's content/interface into it? If so how could you do that and maintain refresh/edibility? iframe? We've succeeded in having the URL navigate and display the correct location (www.MYSITE/subsite1) but although the theme and basic formatting loads the actual content 404s.

    Tim.Moore - thanks. Actually our structure is more complex (went one subroot-deep for simplicity). Our required placement is closer to: http://WWW.MYSITE/DEPARTMENT/blog1

  5. sspd
    Member
    Posted 14 years ago #

    I've got my site working with an install on the root, thus: http://www.sscomics.net

    Static pages are essentially template files within your theme folders. I'm sure there's probably an easier way of doing this, but what I ended up doing was creating a template for each page, and doing an include the original HTML body code. That way, all you need to do is update the HTML files when you want to change content.

    Here's a sample:

    <?php
    /*
    Template Name: blog1_animation_page
    */
    ?>
    
    <?php get_header();?>
    
    <?php include("http://www.domian.com/animation.html") ?>
    
    <?php get_footer(); ?>

    From there what I did was create a page from the dashboard using that template. I don't have any iframes, nor have I tested them with this method, but in theory they should work.

    Hopefully I've been at least vaguely helpful.

  6. tim.moore
    Member
    Posted 14 years ago #

    SSPD: Why can't you move all the body content of your HTML pages into WordPress as Pages? You can then create a template that has the layout and CSS in it. WordPress would put everything together for you and you could edit content through WordPress rather than editing HTML directly.

  7. sspd
    Member
    Posted 14 years ago #

    No reason why you couldn't do that.

    I was just fighting with it for so long I jumped on the first viable solution I found ;)

About this Topic