I have a few dozen domains I wish to now point to one site. I have given up on all but one or two of my sites now since I have way less time to come online. In my .htaccess I have Options +FollowSymLinks RewriteEngine on Redirect 301 / http://www.mymaindomain.net/ which works. But /whatever or /whatever.html(.php etc) still looks for a 404 error. Is there a way to redirect Everything to http://www.mymaindomain.net/? Like http://www.olddomain.com or http://www.olddomain.com/whatever.php to just http://www.mymaindomain.net/? I want to set up one account on my VPS for olddomain.com and park all my old domaisn on top of it and they all use the same .htaccess and redirect to http://www.mymaindomain.net/
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^([^.]+)$ http://www.domain.com/$1 [R=301,L]
Not sure if this'll do it. Options +FollowSymLinks RewriteEngine on Redirect 301 /([^.]+) http://www.mymaindomain.net/$1