Back to Blog
Tools SEO
.htaccess Redirect Generator: Create Apache Redirect Rules
1 min read By OhMyApps
Need to set up redirects on Apache? Our .htaccess Redirect Generator creates properly formatted redirect rules in both simple Redirect and RewriteRule formats.
How to Use
- Enter the old URL and new URL
- Choose redirect type (301 permanent or 302 temporary)
- See both formats — simple Redirect and mod_rewrite RewriteRule
- Copy the rule to paste into your .htaccess file
Common Use Cases
- Site migration: Redirect old URLs to new ones
- URL restructuring: Update URL patterns while preserving SEO
- Domain changes: Redirect entire domains
- HTTP to HTTPS: Force secure connections
Frequently Asked Questions
When should I use 301 vs 302? Use 301 for permanent moves (passes SEO value) and 302 for temporary redirects.
Which format should I use? Simple Redirect is easier. RewriteRule offers more flexibility with patterns.
Try our free .htaccess Redirect Generator now.