Enter the old URL path (e.g., /old-page.html)
Enter the new URL (full or relative path)
Permanent redirect. Tells search engines the page has moved permanently.
Temporary redirect. Page may return to original URL.
Redirects only the specific URL entered.
Uses pattern matching for flexible redirects.
The Htaccess Redirect Generator is a free online tool that helps you create proper redirect rules for your .htaccess file. It supports multiple redirect types (301, 302, 303, 307) and allows you to generate both exact match and regex-based redirects. Simply enter your old and new URLs, choose your redirect type, and get ready-to-use htaccess code that you can copy directly into your server configuration file.
Have questions about Htaccess Redirect Generator? Find answers to the most common queries below.