Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question