Why we use .htaccess file ? We use HTA Script to combat crawlers / hackers from entering the site or disrespecting our policy. It can also be use as an advantage to redirect old directory and tell Search Engine that you are moving. However, it sometime kills the server due to abuse (user who doesn't know how to handle it).
Hta is VERY powerful and dangerous. If you know what you are doing, then you will be fine. But, lets face it... its risky.
In our company in Brazil, we own a CMS where we use. htaccess file to redirect URL parameters (many use, even Wordpress, Joomla, Magento ...)
I see no danger if they know how well. Thanks guys. But Is it necessary for every site ? It's not necessary for every site, but if you run a content management system like WordPress you do have to have it. (WordPress automatically creates it for you and uses it to tell the server where to find your posts and pages.)
Most websites do use it, even if they don't have a content management system. For example, if you move an old page, you need to use .htaccess for a 301 redirect. This automatically sends people (and search engines) who try to reach the old page, to the new page.
It can be used for other things too, like password protecting a directory, but those are the most common uses.
Hta is VERY powerful and dangerous. If you know what you are doing, then you will be fine. But, lets face it... its risky.
I see no danger if they know how well. Thanks guys. But Is it necessary for every site ? It's not necessary for every site, but if you run a content management system like WordPress you do have to have it. (WordPress automatically creates it for you and uses it to tell the server where to find your posts and pages.)
Most websites do use it, even if they don't have a content management system. For example, if you move an old page, you need to use .htaccess for a 301 redirect. This automatically sends people (and search engines) who try to reach the old page, to the new page.
It can be used for other things too, like password protecting a directory, but those are the most common uses.