.htaccess is a file used with Apache servers to set configurations on a directory level. This is particularly useful when you are setting specific configuration for different directories. It is also useful (and recommended to be used only) in case you don’t have access to the main configuration file for Apache – which is mostly the case covering websites on shared-hosting accounts. There are a lot of tricks you can do with the .htaccess file like password protecting a directory, changing the way your hosted file extensions appear to users and even securing your WordPress website against malicious scans and requests.
Knowing .htaccess directives is basically knowing your Apache configuration. Like most things, you would need to use them regularly to actually remember them. This was not the case for me, as I was googling .htaccess directives over and over again, because I’m not that of an Apache wiz. Nor need I be. But I got tired to google things over and over gain. After that I got tired of browsing through lost bookmarks. After that I discovered “.htaccess generators”, like this one or this one, which seemed to be what I wanted. While there are many besides those mentioned and a lot of documentation on the subject (including books), I still felt I wanted something different.
So I decided to make my own – most complete .htaccess generator ever. Of course it’s not the most complete, yet, but it will be at a certain point. It will maybe have a proper design, but I like to have it working the way I want it before thinking of design. Any suggestions / free designs are welcomed, though. So far it includes the most frequent ones that I’ve found myself using. It hasn’t been developed in a while, but you can try it out here.
More on .htaccess