lucy24 - 6:15 pm on Apr 16, 2013 (gmt 0)
Is there not a way of putting the redwidgets for example into one command to redirect to allredwidgets?
Yes, there is. In fact your rules as written don't even require RedirectMatch; they're simple Redirect rules. That's assuming for the sake of discussion that you have NO RewriteRules anywhere, so mod_alias (Redirect by that name) remains OK to...
:: grind to a screeching halt as I look more closely ::
You've garbled the syntax of two different modules. RedirectMatch 301 is mod_alias (Redirect by that name). The [R=301,L] flags belong with mod_rewrite.
Either way, you certainly don't need all those separate little rule-lets.
RedirectMatch 301 /tinyredwidgets/(.*) http://www.example.com/allredwidgets/$1 [R=301,L]
RedirectMatch 301 /littleredwidgets/(.*) http://www.example.com/allredwidgets/$1 [R=301,L]
RedirectMatch 301 /bigredwidgets/(.*) http://www.example.com/allredwidgets/$1 [R=301,L]
RedirectMatch 301 /massiveredwidgets/(.*) http://www.example.com/allredwidgets/$1 [R=301,L]
(which is wrong in any case)
RedirectMatch 301 /(tiny|little|big|massive)redwidgets/ http://www.example.com/allredwidgets/
RewriteRule (tiny|little|big|massive)redwidgets/(.*) http://www.example.com/allredwidgets/$1 [R=301,L]
A key difference between mod_alias and mod_rewrite is that mod_alias (Redirect by that name) reappends the rest of the path; you don't have to capture anything after the part you're changing. mod_alias (RewriteRule, which can create a full-fledged 301 redirect) throws everything away, so anything you need to reuse has to be captured.
You don't say whether this is happening in htaccess or your config file, but I'm guessing htaccess. The "pattern" part of a rule has a leading slash in the config file but not in htaccess. The "target" of any redirect-- whether by mod_alias or mod_rewrite-- begins with the full protocol and domain name, so don't change that part.
Do you currently use mod_rewrite for anything, anywhere in your htaccess? If so, you need to change any existing Redirect or RedirectMatch rules to use mod_rewrite instead. If there are lots of them, I've got a simple Regular Expression that you can plug into a text editor and change them all at once.