1. Domain Redirection
2. Security
3. Simple 301 Redirect
Generated .htaccess Code
Always backup your current file via FTP before editing.
Master Your .htaccess File
What is .htaccess?
The .htaccess file is a powerful configuration file used by Apache servers (like Bluehost, SiteGround, HostGator). It controls how your server responds to requests. You can use it to redirect URLs, ban bad IP addresses, and force secure HTTPS connections.