Answer the question
In order to leave comments, you need to log in
.htaccess RewriteRule then 1 then 2 variables how to solve?
When there are two variables, for example site.ru/moskva/one-page,
then everything is fine, but when there is only 1 variable, for example, "moskva" - then troubles.
RewriteRule ^([0-9a-z\.\-]+)/([0-9a-z\.\-]+)/?$ index.php?city=$1&page=$2 [L]
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