Apache redirect problem: redirects with escaped / don"t work.
am 17.06.2007 00:17:13 von dterrors
..htaccess:
RewriteEngine On
RewriteRule .* http://www.alltheweb.com [R]
It does the redirect for any url I give it, except a url that contains
'%2F'. That's the escape for /
For example:
http://www.mysite.com/%2F
http://www.mysite.com/wrwrgwr/gwrgw/wefwrg%2Fwrgwrg
Don't redirect. If the url has the %2F in it, apache gives a 404
rather than redirecting. Why? Apache bug?
Re: Apache redirect problem: redirects with escaped / don"t work.
am 17.06.2007 02:42:30 von HansH
schreef in bericht
news:1182032233.898819.58960@u2g2000hsc.googlegroups.com...
> It does the redirect for any url I give it, except a url that contains
> '%2F'. That's the escape for /
>
> For example:
> http://www.mysite.com/%2F
> http://www.mysite.com/wrwrgwr/gwrgw/wefwrg%2Fwrgwrg
>
> Don't redirect. If the url has the %2F in it, apache gives a 404
> rather than redirecting. Why? Apache bug?
>
It's a feature
http://httpd.apache.org/docs/2.2/mod/core.html#allowencodeds lashes
HansH
Re: Apache redirect problem: redirects with escaped / don"t work.
am 25.06.2007 06:08:26 von dterrors
On Jun 16, 8:42 pm, "HansH" wrote:
> schreef in berichtnews:1182032233.898819.58960@u2g2000hsc.googlegroups. com...> It does the redirect for any url I give it, except a url that contains
> > '%2F'. That's the escape for /
>
> > For example:
> >http://www.mysite.com/%2F
> >http://www.mysite.com/wrwrgwr/gwrgw/wefwrg%2Fwrgwrg
>
> > Don't redirect. If the url has the %2F in it, apache gives a 404
> > rather than redirecting. Why? Apache bug?
>
> It's a featurehttp://httpd.apache.org/docs/2.2/mod/core.html#allowe ncodedslashes
>
> HansH
Thanks very much Hans, this must be a new "feature". Strange that it's
on by default...