Question

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

Était-ce utile?

La solution

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
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top