301 Redirect Online

RedirectMatch Permanent Redirect Generator

If You have a lot of mod alias(redirectmatch) 301 redirects and you need to proceed this way, here is the bulk redirectmatch generator for  .htaccess to help you with this task. It generates RedirectMach 301 rules for exact page to page redirection based on regular expressions syntax. Please, read notes at the bottom. 

Paste lines with Old and New urls here:

Copy Apache .htaccess mod Alias RedirectMatch rules from here:

Separator between old and new url in a line:

Distinct 301 Redirects for distinct domain names in old urls

Unfortunately, mod Alias can't check if request come from certain domain name. So, all old domain names will be just stripped. Fortunately, to use domain name check for 301 redirects is very rare task. To use domain names as condition, please, use Bulk htaccess 301 redirect rewrite generator.

301 redirect on special query string condition in old urls

Mod Alias is very strict and fast module, but not too functional. It can't check if certain query sting come. Mod alias redirectmatch will just add old query string to new url. To check query strings, please, use htaccess rewrite rule generator for 301 redirects.

Redirect to url with special query string

Again, no such functionality with Redirect or RedirectMatch. Possible to do it with mod Rewrite. To do such 301 redirects, please, use htaccess rewrite rule generator.

Why not just use "Redirect permanent" or "Redirect 301"?

These rules will redirect whole directories, not just only individual urls. It can result in wrong redirects. This is why this generator uses redirectmatch.  It is clear from  mod_alias 301 redirect documentation.