httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Isaev <>
Subject Mod_rewrite question
Date Tue, 18 Dec 2001 07:03:15 GMT
Hello users,

How can I solve the following taks?

I have a site e.g. It was indexed by Search
Engines. And  now where a user comes from e.g.
I'd like to "rewrite" him to my main page. I use the following

RewriteEngine On

RewriteCond %{HTTP_REFERER} ^http://www\.google\.com/  [NC]
RewriteRule /* [R,L]

BUT, when I implement it on my site a weird thing happens. When I
click on the link to my site from the browser
stops responding. After checking my www server log files I've
noticed the following. The browser requests a page from my site and
Apache rewrites it to, but HTTP_REFERER still
contains and Apache rewrites it again to and so on. The only way to stop this process
 is to press STOP button in my browser.

Thanx in advance.  

Best regards,
 Alexander Isaev                

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message