Mass Apache .htaccess redirect generator
Create 301 permanent redirects easily
If you've got a list of old URLs with their new redirected URL (e.g. in Excel file) and access to .htaccess file, this is the tool for you.
It's a mass/bulk generator of 301 permanent redirect rules to be put in .htaccess file (Apache with mod_rewrite enabled is required). Made with ♥ by NetMagnet.cz.
Usage
- Enter one or more URLs in csv format
from_url; to_url
. One redirect rule per row. - Query parameters in
from_url
will be handeled. - Leading and trailing spaces will be omitted.
Example:
# Absolute URL to absolute URL - absolutely fine http://www.yourdomain.com/old/page.html; http://www.yourdomain.com/new/ # Relative URL to absolute URL /old; http://www.yourdomain.com/new/ # Relative URL to relative URL. 2 following rules are considered duplicate. old; /new/ old; new/ # Query parameters in URL http://www.yourdomain.com/index.php?product=123; /product/xyz/
Paste here
Changelog
- 2021-03-02: Better duplicate FROM detection, show warnings even if errors found, big refactor.
- 2020-01-30: Add QSD as a default flag.
- 2018-11-05: Fix duplicate query parameters in TO rules, automatically decode all input URLs.