Re: RewriteRule and enabling pcre UTF-8 mode

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

 



Hi

On Thu, Apr 14, 2011 at 1:16 PM, Nick Kew <nick@xxxxxxxxxxxx> wrote:

On 14 Apr 2011, at 10:32, Haim Ashkenazi wrote:

> But the (*UTF8) syntax causes a syntax error in httpd 2.2.3 (CentOS 5.x).

What's the error message?  Can't see anything in mod_rewrite that would
reject a valid pattern, so I wonder if the pcre you've linked was compiled
without utf8 support?
Well, it's compiled with UTF-8 support, but I found that it's a different version then what I'm running with nginx. The pcre installed on the nginx machine accepts the (*UTF8) notation while the pcre on the httpd machine doesn't. The way to enable UTF8 on the pcre in the httpd machine is to add the '8' option at the end (e.g, /(.)(.*)/8). I don't know how to do it on the rewrite rule as '/8' will mean something else there.

Thanks

--
Haim

[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