J
J
jelezo2016-03-12 11:56:56
PHP
jelezo, 2016-03-12 11:56:56

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]

However, no result.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
trevoga_su, 2016-03-12
@trevoga_su

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 question

Ask a Question

731 491 924 answers to any question