301 Redirect Question!
- SEO |
Let's say that I have a website and you can access the content as below...This will create duplication issues in Google if I understood it correctly.
www.abc.com
www.abc.com/index.html
www.abc.com/index.asp
www.abc.com/
abc.com
www.abc.com/home.html
From my understanding, to solve the issue I would have to create a 301 redirect to tell Google my preferred URL version.
So would this be the correct code to take care of all the canonical issues above so Google will recognize that www.abc.com is the referred version by putting this in the .htaccess file? Or is there anything else that is needed? Also would this be applicable to all sites (asp,php,html, jsp etc)?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^abc\.com
RewriteRule (.*) http://www.abc.com/$1 [R=301,L]
Appreciate Your Help..
Many Thanks,
Chloe
-
TomBond -
Thanks
{{ DiscussionBoard.errors[1325091].message }} -
-
Geraldm -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[1325132].message }}-
Chloe Brooks -
Thanks - 1 reply
{{ DiscussionBoard.errors[1328404].message }}-
Geraldm -
Thanks - 1 reply
{{ DiscussionBoard.errors[1328627].message }}-
Chloe Brooks -
Thanks - 1 reply
{{ DiscussionBoard.errors[1328914].message }}-
Geraldm -
Thanks - 1 reply
{{ DiscussionBoard.errors[1328922].message }}-
Chloe Brooks -
Thanks - 1 reply
{{ DiscussionBoard.errors[1333180].message }}-
Geraldm -
Thanks
{{ DiscussionBoard.errors[1341665].message }} -
-
-
-
-
-
-