.htaccess Redirect Generator

.htaccess Redirect Generator

Bulk 301 redirects

Paste data from Excel or upload a file: column A is the old URL and column B is the new URL.
Optional. For www normalization, the domain is detected from the first absolute new URL; otherwise the current host is used.
Apache version
Protocol
WWW preference
Trailing slash
Index files

Generated .htaccess code

Input diagnostics

    Back up your existing .htaccess file and place generated redirects before the Laravel or CMS front-controller rules. Test the result on a staging site first.

    The .htaccess Redirect Generator converts URL mappings into safe Apache redirect rules, adds common canonicalization presets, and reports malformed or conflicting rows before they can break a website.

    Related