Q
Q
Qubert2014-01-19 15:35:05
PHP
Qubert, 2014-01-19 15:35:05

Mod_rewrite for two requests?

Hello!
I have get requests in the url:
Type:
/?city_id=3166&city_name=%C1%E0%F0%ED%E0%F3%EB
Now the city name is Barnaul
I need to do something like:
/%C1%E0%F0%ED% E0%F3%EB/3166
Made this rule in .htaccess:
RewriteRule ^([A-Zaa-z]*)/([0-9]*)$ /index.php?city_name=$1&city_id=$2
Now that I enter:
Barnaul/3166
or
%C1%E0%F0%ED%E0%F3%EB/3166
It says that the page does not exist
How can I solve the problem? thank!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WEBIVAN, 2014-01-19
@Qubert

As far as I remember, .htaccess does not understand Cyrillic in regular expressions. Specify a range of unicode character codes instead of [A-Za-z]* .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question