by SkiBum
3 replies
I noticed in looking at my backlinks that for my homepage, about 70% of the links are associated with one version of the URL and 30% are associated with a different version of the URL

I know I have to add redirect code to the htaccess file, but I need help with what the correct code is.

What would be the correct syntax to redirect

http://domain.net/index.html(where the 30% of links point) to

http://www.domain.net(where 70% of links currently point)

Also does the www matter, so if I do the above redirect, and someone types in http://www.domain.net/index.html, is it also redirected to http://www.domain.net or do I have to add an individual redirect for that.

Thanks Much For The Help.
#question #redirect
  • Profile picture of the author mojojuju
    Put this in your .htaccess:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain.net [NC]
    RewriteRule ^(.*)$ http://www.domain.net/$1 [L,R=301]
    Signature

    :)

    {{ DiscussionBoard.errors[1877438].message }}

Trending Topics