Answer the question
In order to leave comments, you need to log in
Why doesn't CNC regex work in .htaccess?
Good evening!
There are links like:
site.ru//news.php?city=1&park=2&page=1
I want to get from this:
site.ru/1/2/news/page/1
Here is what I write in .htacces:
RewriteCond %{REQUEST_URI} ^\/([az]+)\/([az]+)\/news\/([az\-]+)[\/]*$
RewriteRule ^(.*)$ news\.php\?city =%1&park=%2&page=%3 [L]
But it doesn't work.. What's wrong?
Thanks in advance!
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