The MU forums have moved to WordPress.org

Redirecting / Rewriting "index.html" - How do I do it? (3 posts)

  1. ancawonka
    Member
    Posted 13 years ago #

    Hello,

    We're just about to launch the intranet site I've been working on for the last few months. Hurray!

    But... We need to add a few redirects to make the old site (static HTML files) point to the new site. I'm trying to do it using mod_rewrite in apache.

    I've added the following in my .htaccess file:

    #redirect index.html
    RewriteRule ^index\.html /index\.php

    However, this doesn't work... When I go to /index.html on my site, I get a 404 error page.

    I'm wondering if this is because of my ingorance of RewriteRules, or something else. Should this work on an MU install?

    I'm running my site over SSL - could this interfere w/ the Rewrite Rule?

  2. andrea_r
    Moderator
    Posted 13 years ago #

    Rewrites aren't my strong suit at all, but I did find this:

    http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

  3. ancawonka
    Member
    Posted 13 years ago #

    Thanks Andrea. Unfortunately, that didn't work. We went with an old-fashioned solution of putting a meta-refresh in the index.html file, and adjusting the web server to look at index.php first.

    Cheers,

    Anca.

About this Topic

  • Started 13 years ago by ancawonka
  • Latest reply from ancawonka