Htaccess Generator client-side ?
How to use Htaccess GeneratorCompose an Apache .htaccess without knowing the syntax: toggle HTTPS redirect, www/non-www forcing, security headers, directory-listing off, browser cache, Gzip compression, error pages and SPA fallback, plus your 301 redirects. Presets (security, WordPress, SPA, performance) speed things up. Copy or download the result.
?
Compose an Apache .htaccess without knowing the syntax: toggle HTTPS redirect, www/non-www forcing, security headers, directory-listing off, browser cache, Gzip compression, error pages and SPA fallback, plus your 301 redirects. Presets (security, WordPress, SPA, performance) speed things up. Copy or download the result.
Generate an Apache .htaccess (HTTPS, redirects, security, cache).
How to use Htaccess Generator
Compose an Apache .htaccess without knowing the syntax: toggle HTTPS redirect, www/non-www forcing, security headers, directory-listing off, browser cache, Gzip compression, error pages and SPA fallback, plus your 301 redirects. Presets (security, WordPress, SPA, performance) speed things up. Copy or download the result.
Frequently asked questions
Where do I put the .htaccess file?
At the root of your site (or the relevant folder). Apache must allow overrides (AllowOverride) for the rules to take effect.