HTACCESS Redirect Generator
Generate Apache .htaccess redirect rules for various scenarios
Redirect Type
Domain Redirect
URL Redirect
WWW to Non-WWW
Non-WWW to WWW
HTTP to HTTPS
Custom Redirect
Source Domain
Target Domain
Source URL
Target URL
Redirect Code
301 (Permanent)
302 (Temporary)
307 (Temporary)
308 (Permanent)
Choose the appropriate HTTP status code for your redirect
Additional Options
Preserve Query String
Force Redirect
Generate Redirect
Clear
Generated Redirect Rules
Download
Redirect Rules
Copy
Explanation
Common Redirect Scenarios
Domain changes
URL structure updates
WWW to non-WWW
HTTP to HTTPS
Custom redirects