WordPress.org

Ready to get started?Download WordPress

Forums

mod rewrite question -- index.php to index.htm (4 posts)

  1. blakekr
    Member
    Posted 8 years ago #

    Hmmmm, this is a weird one.

    Does anyone know if it's possible using some form of modrewrite to redirect index.php ONLY to index.htm (my static index page) without screwing up the rest of wordpress? E.g., affects index.php, but not index.php?blahblah

    I've been playing with mod rewrite to this effect but ... unsuccessfully.

    Thanks!

  2. blakekr
    Member
    Posted 8 years ago #

    jus' checking

  3. kickass
    Member
    Posted 8 years ago #

    Umm, I'm not sure if this is what you want so don't yell if it doesn't work.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.yourdomain.com

    RewriteRule ^index\.php$ /index.htm [r=301,L]

  4. blakekr
    Member
    Posted 8 years ago #

    THANKS! I'll try it!

Topic Closed

This topic has been closed to new replies.

About this Topic