| Klaus Johannes Rusch 2005-02-08, 5:49 pm |
| jdonnell wrote:
> this worked perfectly on one host, but I'm having problems with it on a
> new host.
>
> redirectMatch 301 ^(.*)bb.html/(.*)$
> http://www.blogbloc.com/index.php?PID=1596581
> #
>
> The problem is that the ? get's translated to %3f so the url it
> redirects to is.
> http://www.blogbloc.com/index.php%3fPID=1596581
noescape|NE' (no URI escaping of output)
This flag keeps mod_rewrite from applying the usual URI escaping rules
to the result of a rewrite. Ordinarily, special characters (such as '%',
'$', ';', and so on) will be escaped into their hexcode equivalents
('%25', '%24', and '%3B', respectively); this flag prevents this from
being done. This allows percent symbols to appear in the output, as in
RewriteRule /foo/(.*) /bar?arg=P1\%3d$1 [R,NE]
--
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
|