Answer the question
In order to leave comments, you need to log in
Learning / not learning htaccess?
Hi all. While studying PHP, I finally got to this file. As I understand it, it allows you to reassign some (or all) Apache settings. It also seems to have some mods or plugins that expand its capabilities. So, when I got to the specification, it turned out that there are a lot of these mods, and it's not clear - is it necessary to know all of them? Because on the one hand it's good - a lot of possibilities, but on the other hand - I was told that the fewer lines in .htaccess files, the better.
The best solution, I think, would be to know the .htaccess syntax + basic tricks + only the most necessary mods.
What do you think is the best - how broad should be the knowledge regarding .htaccess for a web programmer? And how are things in general on real web projects - do you torment this file a lot there?
Answer the question
In order to leave comments, you need to log in
The most important thing to understand is that there is no .htaccess syntax!
There is only Apache web server configuration syntax.
It follows from this that you don’t need to rest on learning, because with professional growth you will inevitably switch to nginx.
In general, with such a soviet approach, you will not go far. You don't have to memorize tons of commands. You have to learn how to search for information on the internet. If you need documentation on setting up mod_mime, then finding it is 5 seconds. Here's what you should know.
mod_rewrite - it is desirable to know,
also setting the default encoding,
connecting mod_php5
,
well, and some other little things you can study along the way
Mod_rewrite must be known to the programmer and SEO specialist in order to close duplicates and extra pages
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question