The .htaccess file on your web server has rules that are applied to all incoming web requests. It can help you password-protect directories on your service, prevent hotlinking of images or the most popular use case for .htaccess is to automatically redirect web visitors from one directory to another with the 301 code.

If you are aren’t an experienced programmer, you can use this online tool to generate the .htaccess rules for various actions and copy-paste them into your actual .htaccess file.

Do it carefully because the moment you change an .htaccess file, the changes come into effect and will apply to all future incoming HTTP requests.

← htaccess