What is .htaccess?
.htaccess is a configuration file for Apache web servers. It allows you to control server behavior without modifying the main server configuration.
Common Uses
- URL redirects (301, 302)
- Force HTTPS/WWW
- Custom error pages
- Block hotlinking and IPs
- Enable compression and caching
- Password protection