You want to redirectfrom your "old domain" or from localhost to the other site ?
if yes, then try to use:
Options +FollowSymLinks
RewriteEngine on
RedirectMatch 301 ^(.*)$ http://www.site.com
Vra
When I try to redirect an URL, I have a "localhost//"
that suits before my new URL
I'm writing in the .htaccess like that :
"RewriteEngine On
Redirect301 / www.site.com"
and the result in the navigator is : "localhost//www.site.com"
Thank you
Oplossing
You want to redirectfrom your "old domain" or from localhost to the other site ?
if yes, then try to use:
Options +FollowSymLinks
RewriteEngine on
RedirectMatch 301 ^(.*)$ http://www.site.com