.htaccess Generator

Generate Apache .htaccess rules for redirects, caching, and security.

Ad Slot
Ad Slot

Frequently asked questions

What's the difference between the 301 and 302 redirect options?

301 tells browsers and search engines the move is permanent, so ranking signals transfer to the new URL. 302 signals a temporary redirect that shouldn't transfer those signals. Use 301 for a permanent page move, 302 for something temporary.

Can I redirect a whole pattern of URLs, like /blog/* to /articles/*?

Not with the Redirects section — each entry uses a plain Redirect directive that matches one exact path, not a wildcard or regex pattern. Pattern-based redirects need a hand-written RewriteRule instead.

Does a redirect with an empty From or To field still get added?

No — a redirect only appears in the output once both its From and To fields have something entered; incomplete rows are silently skipped.

We use cookies for analytics and to show ads that keep this site free. No personal data is sold.