What is .htaccess?
.htaccess is a configuration file for Apache web servers. It allows you to control server settings at directory level including redirects, authentication, compression and more.
Where do I upload .htaccess?
Upload .htaccess to the root directory of your website (usually public_html or www folder). It affects that directory and all subdirectories.
Will .htaccess slow down my website?
.htaccess is read on every request which adds minimal overhead. However the performance gains from HTTPS redirects, Gzip and browser caching far outweigh this overhead.
Can .htaccess break my website?
Incorrect .htaccess rules can cause errors. Always backup your existing .htaccess before replacing it. Test on staging first if possible.