Cannot get a redirect to work

Discussion in 'Apache' started by yulsa, Sep 1, 2010.

  1. #1
    Hi,

    Looking for a redirects expert.

    There is a page on our site that is named like this: www.domain.com/?abiznet (question mark is in the name) (I discovered it by doing site:www.domain.com in google, and this page also has a very high PR)

    It really shows the home page of our site. I've been trying to redirect it to our home page using .htaccess, but none of the commands I tried work.

    here is what I tried:

    RewriteRule ^abiznet/?$ / [R=301]


    RewriteRule ^\?abiznet/?$ / [R=301]

    RewriteCond %{QUERY_STRING} ^abiznet$
    RewriteRule ^/ http://www.domain.com/

    Any idea why the redirect not working?

    Thank you.
     
    yulsa, Sep 1, 2010 IP