.htaccess redirect
Create mod_rewrite snippets for WordPress and shared hosting. Everything runs in your browser; we do not store your input on our servers.
Prerequisites
- Apache must have
mod_rewriteenabled andAllowOverridemust allow overrides. - On WordPress, place generated rules above
# BEGIN WordPresson most hosts. - Fill
RewriteBaseonly if the site lives in a subdirectory (e.g./subdir/).
What to configure
Pick a scenario to show only the fields you need. For multiple scenarios, copy the output each time before switching.
Global options
Redirect status (301 / 302)
HTTPS and www (canonical host)
TLS and the www vs non-www host are often configured together. Enable only what you need.
Send HTTP requests to HTTPS on the same host.
Generated output
# .htaccess redirects (generated by SeoTools) # Back up before deploying; on shared hosting, ensure mod_rewrite and AllowOverride are enabled. # # Suggested rule order: HTTPS → canonical host (www) → domain change → directory change → per-page # # No active sections. Enable options in the form and fill in the fields.
After deployment, verify with the redirect checker.
Further reading (Japanese)