|
Posted by Jon Maz on 02/04/07 21:49
Hi,
I'm having problems with a RewriteRule that's applied to url's with the %
character in them, hope someone can help. The % character is a result of
url-encoding non-ASCII words, as in the example below:
1. the word "sιcuritι" comes out of my db
2. I construct the following link, using the php urlencode function:
<a href="/search/s%C3%A9curit%C3%A9">sιcuritι</a>
3. the url created should be interpreted by a RewriteRule:
RewriteRule ^search/([a-zA-Z0-9-+%]+)$ /pages/search.php?word=$1 [QSA,L]
However the RewriteRule doesn't match on my url, and I see this in the
RewriteLog:
init rewrite engine with requested uri /search/sΓ©curitΓ©
So it seems like some kind of decoding is going on so that the RewriteRule
never even sees the % character. I have set everything I can think of
(MySql SET NAMES, Apache AddDefaultCharset) to utf-8.
Any ideas?
TIA,
JON
[Back to original message]
|