Site-Wide Rules
Force HTTPS
Redirect all http:// requests to https://
Force www
Redirect example.com → www.example.com
Force non-www
Redirect www.example.com → example.com
Remove trailing slash
/page/ → /page
Disable directory listing
Prevent browsing folders with no index file
Custom 404 Page
Specific Page Redirects (301)
Generated .htaccess
Upload to your site's root directory (Apache servers only — Nginx uses a different config format). Always back up your existing .htaccess before replacing it, and test one rule at a time on a live site.