Create Apache .htaccess files visually â no coding required
Toggle the features you need and add redirect rules
Code is generated instantly as you make changes
Copy the code and paste into your .htaccess file
.htaccess is a configuration file used by Apache web servers to control directory-level settings like redirects, authentication, and caching.
Enable "Force HTTPS" above. It generates a RewriteRule that redirects all HTTP requests to HTTPS with a 301 status code.
A 301 redirect is a permanent redirect that tells search engines the page has moved permanently, transferring most SEO value to the new URL.
Enable "Enable Gzip Compression" above. It uses mod_deflate to compress text-based files, reducing transfer sizes by 60-80%.
Hotlink protection prevents other websites from directly linking to your images and files, saving your bandwidth and server resources.
Enable "Force non-www" above. It uses a RewriteCond to detect www and redirects to the non-www version.
Security headers like X-Content-Type-Options, X-Frame-Options, and X-XSS-Protection protect against common web vulnerabilities like clickjacking and MIME sniffing.
Place .htaccess in your website root directory (typically public_html or the document root). It affects that directory and all subdirectories.