I’m trying to rewrite a URL which may contain accented letters. Currently I have
RewriteRule ^place-([A-za-z]+)$ place.php?n=$1 [PT,L]
but of course that only allows non-accented letters. Any ideas how to extend it to allow accented letters too, please?
SamA74
2
You can add another range of characters for accents.
A-Za-zÀ-ÿ
1 Like
I don’t know if apache is locale aware, but I would try “word character” - ([\w]+)
1 Like
Thanks, @SamA74 and @Mittineague. I’ll try both (probably tomorrow now) and report back.
Edit -update:
Sam’s works
'fraid yours doesn’t Mitt
1 Like
system
Closed
5
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.