Top twenty htaccess security directives

.htaccess file is a very ancient and one of the most powerful configuration files that controls the Web Server (Apache HTTP Server) settings which runs your website. The powerful .htaccess file has the ability to control access of the www’s (World Wide Web) Hypertext Transfer Protocol (HTTP) using Password Protection, Error Page Redirects, 301 Redirects, URL rewrites etc. Now I will show you how you can create a .htaccess file and put some directives into it to configure the security to prevent unwanted vulnerabilities.

Continue