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

Was it helpful?

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top