Pregunta

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

¿Fue útil?

Solución

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
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top