Redirect ANY request to root of a diff domain

Discussion in 'Apache' started by gaia, Jan 28, 2009.

  1. #1
    hello

    i have the following rewrite working fine
    RewriteCond %{HTTP_HOST} ^(www\.)?mystring\.com$ [NC]
    RewriteRule .? http://mystring.wordpress.com [R=301,L]

    EXCEPT when the request is for one of the paths below
    http://www.mystring.com/forum
    http://www.mystring.com/forum/
    http://mystring.com/forum
    http://mystring.com/forum/

    presumably because the folder "forum" exists in the apache wwwroot.

    how would i make it always redirect (even if i have to manually code "forum" in a condition) ?

    thanks in advance.
     
    gaia, Jan 28, 2009 IP