What is .htaccess?
.htaccess is a configuration file for Apache web servers that allows you to control settings including redirects, security headers, caching, URL rewriting, and directory protection.
Important Notes:
- Always backup your existing .htaccess file before making changes.
- The file should be named
.htaccess (with the leading dot).
- Place it in your website root directory.