Answer the question
In order to leave comments, you need to log in
What should be written in .htaccess for CNC?
Greetings, at the moment the url on the site looks like this: /detail.php?state=LA&city=Marrero&id=4044
What should be written in .htaccess to make the url look like this? /LA/Marrero/4044
I do it like this:
RewriteRule ^([a-z]+)/([a-z]+)/([a-z]+)/$ detail.php?state=$1&city=$2&id=$3 [L]
Answer the question
In order to leave comments, you need to log in
means, somewhere the error
can look in the direction of CNC processing in PHP? www.phpinfo.su/articles/practice/chpu_na_php.html after
all, mod_rewrite as a CNC processor is not a very good solution - it's quite difficult to make quality things, the slightest mistake and the whole site falls.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question