.htaccess Redirect Generator | Apache Rewrite Rules
Generate complex .htaccess redirect rules instantly. Create 301, 302, and www/non-www redirects for Apache servers.
Enter the path of the page you want to redirect from (e.g., /old-page)
Enter the path or URL you want to redirect to (e.g., /new-page or https://example.com/page)
Choose the type of redirect you want to use
Redirect Preview
This redirect will send visitors from:
➔
.htaccess Redirect Generator | Apache Rewrite Rules
.htaccess Redirect Generator simplifies the creation of rewrite rules for Apache web servers. Misconfigured redirects can kill SEO; this tool ensures syntax accuracy.
Supported Redirects
- 301 Permanent: Pass link equity to new URLs.
- Force HTTPS: Secure your site by redirecting HTTP traffic.
- WWW vs Non-WWW: Standardize your domain preference.
- Directory Changes: Redirect old folders to new locations.
Copy the generated code directly into your .htaccess file.
Related Tools
Contact
Missing something?
Feel free to request missing tools or give some feedback using our contact form.
Contact Us