Apache Server configuration support - Apache redirect problem: redirects with escaped / don't work.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > June 2007 > Apache redirect problem: redirects with escaped / don't work.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache redirect problem: redirects with escaped / don't work.
dterrors@hotmail.com

2007-06-16, 7:18 pm

..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?

HansH

2007-06-17, 1:22 am

<dterrors@hotmail.com> 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/mo...wencodedslashes

HansH


dterrors@hotmail.com

2007-06-25, 1:25 am

On Jun 16, 8:42 pm, "HansH" <h...@invalid.invalid> wrote:
> <dterr...@hotmail.com> schreef in berichtnews:1182032233.898819.58960@u2g2000hsc.googlegroups.com...> It does the redirect for any url I give it, except a url that contains
>
>
>
> It's a featurehttp://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes
>
> HansH


Thanks very much Hans, this must be a new "feature". Strange that it's
on by default...

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com