Answer the question
In order to leave comments, you need to log in
How to make a CNC?
Good afternoon . The essence of the question is this:
There is a website: example.com
Original page of the form: example.com/advice.php?id_advice=1 (Dynamic number)
I made it like this: example.com/advice/80 (Well, the number changes accordingly)
Here is the code in .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^advice/([0-9]+)$ ./advice.php?id_advice=$1
Answer the question
In order to leave comments, you need to log in
1. forget about URL conversions at the htaccess level - www.phpinfo.su/articles/practice/chpu_na_php.html
2. write paths to css/js from the root
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question