HTACCESS Generator
Generate Apache Rules
Choose a configuration, provide the required values and generate a ready-to-copy .htaccess snippet.
Required only for WWW and 301 redirect configurations.
Generated .htaccess
About This Tool
The XAVERT HTACCESS Generator creates common Apache configuration snippets for redirects and basic HTTP security headers.
Main Features
- Generate Force HTTPS rewrite rules after confirming that HTTPS works on the domain.
- Redirect non-WWW traffic to WWW.
- Redirect WWW traffic to non-WWW; choose only one preferred domain version.
- Create a basic 301 redirect to a target domain.
- Generate common HTTP security header directives.
- Choose a configuration, review the output, then copy or download the generated .htaccess file.
Server Compatibility
Generated rewrite rules are intended for Apache installations where
mod_rewrite is available. Security header directives
require mod_headers. Back up the current file and test the
generated rules before publishing them. These rules do not apply to Nginx.
Privacy First
Everything is generated locally within your browser. Your domain and generated rules are never uploaded, transmitted, shared or stored on any server.