<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have the same stuff on my backends and what you have here should work.<br>
The only thing I can think of from your example is a missing
'RewriteEngine on' on top. If I don't have that the rewriting is
silently ignored by apache.<br>
<br>
<br>
On 24-Feb-2010 22:21, John Norman wrote:
<blockquote
cite="mid:b6b8b6b71002241321x4d1ed463w3f066a16b3e8ca8a@mail.gmail.com"
type="cite">Sorry about all the questions . . .<br>
<br>
On my backend I want to redirect <a moz-do-not-send="true"
href="http://domain.com">domain.com</a> to <a moz-do-not-send="true"
href="http://www.domain.com">www.domain.com</a><br>
<br>
I see Host: <a moz-do-not-send="true" href="http://domain.com">domain.com</a>
in both the RX and TX sections of the log . . . but the redirect isn't
getting triggered.<br>
<br>
The backend is Apache, and the redirect directives are routine.<br>
<br>
RewriteCond %{HTTP_HOST} ^<a moz-do-not-send="true"
href="http://domain.com">domain.com</a>$ [NC]<br>
RewriteRule ^(.*)$ <a moz-do-not-send="true"
href="http://www.domain.com">http://www.domain.com</a>$1 [R=301,L]<br>
<br>
Am I missing something?<br>
<br>
John<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
varnish-misc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:varnish-misc@projects.linpro.no">varnish-misc@projects.linpro.no</a>
<a class="moz-txt-link-freetext" href="http://projects.linpro.no/mailman/listinfo/varnish-misc">http://projects.linpro.no/mailman/listinfo/varnish-misc</a>
</pre>
</blockquote>
</body>
</html>