Help with redirect

Discussion in 'Apache' started by anika, Aug 27, 2010.

  1. #1
    Hi,

    I need some help with redirect. I'm creating a new site and want to do the following:

    - If a user hit site.com, it shows gets the index.html and in that I've have a moving message and it redirects to newsite.com after 10 seconds.
    - For everything else site.com/* then redirect to site.com/*

    I got the following in my .htaccess

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newsite.com/$1 [R=301,L]

    It does work .. but redirect everything to the new site instantly. How can I exempt if the users try to reach the site directly and shows index.html ?

    Thanks,
    -Anika
     
    anika, Aug 27, 2010 IP