httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chirouze Olivier" <>
Subject RE: [users@httpd] Re: Question about mod_rewrite
Date Thu, 22 Mar 2007 13:26:18 GMT
Hi Jean-Philippe,
Took me time to answer as well...
It becomes pretty weird if this is working on another machine.
If your browser queries for cookies this is not because of Apache but
related to your web application.
Do you use mod_usertrack?
Can you provide a full log? If it logs 20 attempts it might mean that
your pointed server (thenewwebsite) does a HTTP redirect and end up in
an endless loop.


I&0 Infrastructure 
Volvo Information Technology 



	From: Jean-Philippe Battu [] 
	Sent: 25 February 2007 19:29
	Subject: [users@httpd] Re: Question about mod_rewrite
	Hi Olivier and httpd users !
	Sorry for my delay of replying since my last post. Thanks
	for your answer ! In my configuration, I use RewriteEngine
	to on when I try to setup this configuration
	I tried to change the RewriteRule from (.+) to .+
	and to add [P] (In this case I needed to set up proxy pass
	but the result is still the same
	for this configuration:
	        <IfModule mod_rewrite.c>
	                RewriteEngine On
	                RewriteCond %{HTTP_REFERER}
	                RewriteRule (.+)
	                RewriteLogLevel 9
	the redirection seems to work, is written in my
browser but
	this brower tells me to activate cookies and in the access
logfile, the attempt
	is repeated 20 times.
	On another machine, with the same operating system (FC4) and the
same web server
	(apache 2052), it works fine !
	Jean-Philippe Battu
	First, I supppose that's just a cut/paste mistake, but with
	RewriteEngine set to Off, not much will happen.
	Second, you might want to play with [P] flag to proxy the
	Anyway, your last rule is strange: you might try:
	RewriteRule  .* <>
	I&0 Infrastructure 
	Volvo Information Technology 
		From: Jean-Philippe Battu [ <> ] 
		Sent: 14 February 2007 08:13
		Subject: [users@httpd] Question about mod_rewrite
		I need help and advices about using mod_rewrite
		I have some pdf files on my web site
		A foreign web site has stored these pdf file on a html
file on
	this foreign web site
		I would like to redirect its requests to another page 
		so I wrote:
		        <IfModule mod_rewrite.c>
		                RewriteEngine Off
		                RewriteCond  %{HTTP_REFERER}
		                RewriteRule  (.+) <> 
		But it doesn't work ! When the foreign web site tries to
	, the redirection begins but doesn't finish. 
		in the access log of my web site, the access is repeated
	times with a 302 number for the redirect
		On IE, an error message is returned, on firefox, it
tells me to
	check the cookies...
		However I tested this configuration on the same apache
server (
	2.0.52) on another machine and the redirection
		works well and it succeded
		I tried to specify the redirection code 302 or 301 in
the append
	flag R but it is the same
		Thanks for your help
		Jean-Philippe Battu

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

View raw message