Easy way to create .htaccess file

.htaccess is a text file that contains commands to instruct web servers how to behave in certain situations. The file name starts with a dot because dot-files are hidden files on Unix-like operating systems.

It has a bit complex rules for writing commands. Mis-coding can cause serious risks. With .htaccess Editor you can create .htaccess files (without any knowledge of complex rules) that includes;

Deny all access to files
Basic authentication
Custom error pages
Password protection
Default pages
Redirect directives
Access restrictions

Custom error pages using .htaccess

There is a huge list of things that you can do with .htaccess file like protecting folders with a password, redirecting your visitors, custom error messages, banning certain IP address or only allowing users with certain IP address, to stop directory listing, etc… In this article I am going to explain how to create your own custom error pages instead of using your host’s error pages or having no page.

Custom error pages
The 404 error message is an HTTP response indicates that the server couldn’t find what the client requested. You may want to redirect your visitors to error message that you created. This can be done by adding the line below into your .htacess file.