1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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