Re: Rewrite hex data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/26/07, Alessandro Fiorenzi <a.fiorenzi@xxxxxxxxxxxx> wrote:
>
>  Hi,
>
>  I would ask a specification of rewriterule
>
>  in a virtual host if I have a rule like this one:
>
>  RewriteRule ^/urlpath(.*) https://site.org/
>
>  work fine. but if in my browser I write /urlpath in hex is:
> %2f%75%72%6c%70%61%74%68%a  does the rewrite rule match or not?

Why are you posting this question to the list instead of just trying
it out yourself (under the RerwiteLog to verify what is happening)?

My guess is that mod_rewrite will canonicalize the URL so you will get
a match. But watch out, since apache will reject any request with %2f
unless you use the AllowEncodedSlash directive. (And I'm not even sure
if a request without a leading slash is legal.)

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux