Cruft-free URL with accented letters

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?

You can add another range of characters for accents.

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

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.