Bcorre
⚙️ Dev

Online .htaccess Redirect Generator

When migrating a site, restructuring URLs, or removing pages, properly configured 301 redirects preserve accumulated SEO equity and prevent user drop-off. This tool generates rules for the Apache .htaccess file.

Simple syntax. Works out of the box on most Apache servers.
Old URLNew URLCode
Redirect 301 /old-page/ /new-page/

Frequently asked questions

What is the difference between 301 and 302?

301 is a permanent redirect. It tells search engines the page has moved forever: it passes SEO equity and updates the index. 302 is temporary: the page is temporarily unavailable, equity is not passed, and the search engine continues to index the original URL.

What is the difference between Redirect and RewriteRule?

Redirect uses simple syntax and works out of the box. RewriteRule is more flexible, supporting regular expressions and conditions. For most use cases, Redirect is sufficient.

Where do I place the code?

In the .htaccess file in the website root. Rules are applied on every request to the Apache server. For RewriteRule, make sure the mod_rewrite module is enabled.

How do I verify a redirect?

Use `curl -I https://old-url.com` or an online tool. Confirm that the response status is 301 and the Location header points to the new URL.

Need a full SEO audit?

Tools help with targeted tasks. For systematic growth — request a free review of your site.