httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Akins <brian.ak...@turner.com>
Subject Re: [PATCH] add notfound to mod_rewrite rule
Date Thu, 01 Jun 2006 20:11:08 GMT
André Malo wrote:

> We don't need this, because you can use [R=404]. F and G are already just 
> syntactic sugar.
> 

 From the docs:

'redirect|R  [=code]' (force redirect)
Prefix Substitution with http://thishost[:thisport]/ (which makes the 
new URL a URI) to force a external redirection. If no code is given, a 
HTTP response of 302 (MOVED TEMPORARILY) will be returned. If you want 
to use other response codes in the range 300-400, simply specify the 
appropriate number or use one of the following symbolic names: temp 
(default), permanent, seeother. Use this for rules to canonicalize the 
URL and return it to the client - to translate ``/~'' into ``/u/'', or 
to always append a slash to /u/user, etc.


So do the docs need to be updated to say: return arbitrary http code?

BTW, this does work.  patch withdrawn.  somebody needs to fix docs...

-- 
Brian Akins
Lead Systems Engineer
CNN Internet Technologies

Mime
View raw message