R
R
Red Rain2015-03-14 23:25:22
PHP
Red Rain, 2015-03-14 23:25:22

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

5 answer(s)
F
FanatPHP, 2015-03-14
@CodeDes3D

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.

O
olamedia., 2015-03-14
@w999d

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

W
WebMasterSEO3, 2015-04-11
@WebMasterSEO3

Mod_rewrite must be known to the programmer and SEO specialist in order to close duplicates and extra pages

A
Anton Filippov, 2018-01-13
@Combat7

www.unheap.com/media/tables-graphs

M
Maxim Timofeev, 2018-01-13
@webinar

https://d3js.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question