.htaccess question for redirecting domain.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • whoababesnet
    Confirmed User
    • May 2005
    • 201

    #1

    .htaccess question for redirecting domain.

    Hi,,

    hope to get my answer here.


    i want to redirected a specific incoming domain by using this code in htaccess:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?other-domain.com/.*$ [NC]
    RewriteRule .* http://mydomain.com/to-another-page.html [R,L]


    the problem is that the .htaccess keep loading this rules and the incoming visitor from other-domain.com never see the page...

    if you can help... thank you ..
    ICQ#267-021-715
Working...