.htaccess is a configuration file used on Apache-based hosting to control server behavior for a specific directory, without needing access to the main server configuration.
Common Uses
Setting up URL redirects, forcing HTTPS, restricting access to specific files or folders, and configuring custom error pages are all commonly handled through .htaccess.
Handle With Care
A syntax error in .htaccess can bring down your entire site with a 500 error — always keep a backup of the working version before editing it directly.
Español
Deutsch