Forum Moderators: phranque
RedirectMatch 301 /.* http://example.com/almost did the trick. I should have copied all the rules in the first place, here they are:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /product.php?id=$1 [QSA,L]
ErrorDocument 404 error404.html
RedirectMatch 301 /dir/(.*) http://example.com/dir/old/$1 RedirectMatch 301 /.* http://example.com/worked, but it also redirected following URL - which work fine without this line -
Redirect 301 /PRODUCT http://example.com/accessories.html