Answer the question
In order to leave comments, you need to log in
How would I deal with htaccess?
Good day to all.
Now I am studying a series of lessons on creating a site engine in php (more precisely, I have already studied it). The essence of the engine is as follows: there is an index.php file and, in fact, all other *.php work through it. htaccess was not explained in the tutorials. It was just said to add this file with this code to the root of the folder with the site and that's it:
Use OR instead of AND to combine conditions in rules.
Answer the question
In order to leave comments, you need to log in
I advise you to abandon this approach when you write conditions for the site in the htaccess server configuration file.
This is already an outdated practice, and even from an ideological point of view, it is not correct when the function of routing a web application is assigned to the server configuration file.
Read - www.phpinfo.su/articles/practice/chpu_na_php.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question