| |||||||
This is a discussion on Useful SEO Tip within the Website Design Guides & Articles forums, part of the Websites category; We all know that duplicate content can harm your rankings, but did you know that unless you configure it properly ...
![]() |
| | Thread Tools |
| | #1 |
| iBook | Useful SEO TipWe all know that duplicate content can harm your rankings, but did you know that unless you configure it properly your own site cna be the cause of its own duplicate content. huh? Basically your site can be accessed either by http://domain. com or http://www.domain. com when indexing happens this can bee seen as duplicate content. To get round this you need to have access to your .htaccess file on the route of your site. In here enter the following code. Code: Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^sitename.com [nc]
rewriterule ^(.*)$ http://www.sitename.com/$1 [r=301,nc]
Hope this helps some of the beginners out there like me |
|
| | #2 |
| Mini Mac | I have been using this for a while and it means that all backlinks that include either www or not count towards to same domain
__________________ |
|
| | #3 | |
| 1 new message Join Date: Jul 2007 Location: Omicron Persei 8
Posts: 2,518
![]() ![]() ![]() ![]() ![]() ![]() | Quote:
| |
|
| | #4 |
| iBook | basically if somebody visits sitename.com they actually get to www.sitename.com |
|
| | #5 | |
| 1 new message Join Date: Jul 2007 Location: Omicron Persei 8
Posts: 2,518
![]() ![]() ![]() ![]() ![]() ![]() | Quote:
| |
|
| | #6 |
| iBook | i would imagine so yeah, ive never seen it done that way though |
|
| | #7 |
| iPod 60gb Join Date: May 2008 Location: Northampton
Posts: 1,756
![]() ![]() | I believe you can do this via Google webmaster tools also.
__________________ |
|
| | #8 |
| £50,000 Club Join Date: Nov 2005 Location: Down Under
Posts: 1,665
![]() ![]() | I think some hosts do this automatically. Mine does (I think)
__________________ |
|
| | #9 | |
| iPod Shuffle Join Date: Apr 2009
Posts: 16
![]() | Quote:
| |
|
| | #10 |
| iPod Nano 1GB Join Date: Jul 2009 Location: Limerick, Ireland.
Posts: 85
![]() | This is good, thanks for posting it, i will change my site straight away |
|
| | #11 |
| iPod 30gb Join Date: Jan 2010 Location: Cheltenham England
Posts: 1,492
![]() | Cool. and "www.sitename.com" is a redirect to a real site
__________________ |
|
| | #12 |
| Super Moderator | Well cheers for the 6months bump! But still, it's useful and I still need to get around to doing this!
__________________ 2011 Winner of Best Site Award and Grammanazi Award. Runner up for Member of the Year 2011 Spoiler Free iPhone | Free iPhone | Free iPhone 4S | Sign Define App | Freebie Proof Photo Blog ![]() Total Received: £4,218.94 plus Current Stats: 116 green 17 pending Spoiler |
|
| | #13 |
| Super Moderator | So all we do it enter that code, with our own domains, into the website on the html bit? Nothing else?
__________________ ![]() |
|
| | #14 |
| Mini Mac Join Date: Nov 2006 Location: l33dz
Posts: 9,421
![]() ![]() ![]() ![]() ![]() ![]() | been doing this since I started thought it was common knowledge :S
__________________ Freebiejeebies | Free iphone | Free Blackberry | Free Wii U | Free laptop ![]() ^^^^ its not real stop begging losers ^^^^ Someone once said "Life is what you make it", I disagree sometimes life makes you into what you are. |
|
| | #15 |
| is meant to be revising Join Date: Dec 2008 Location: Nottinghamshire
Posts: 6,323
![]() ![]() ![]() ![]() | I tried doing this through google webmaster tools and it said I had to verify the http://domain? I've verified the http://www.domain?
__________________ Free iPad | Free Xbox 360 |Free 3DS Want to know how to get greens (referrals) for FreebieJeebies? I'll tell you how..... Work hard, like the rest of us! Feel free to ask questions! |
|
| | #16 |
| Call me Vlad Join Date: Jun 2008 Location: South London
Posts: 9,503
![]() ![]() ![]() ![]() ![]() ![]() ![]() | ride your go to notepad, paste the code obviously changing the website links and save that as a .htaccess file (not as a .txt) then upload it to your root folder. it will redirect any links going from hxxp://sitename.com to hxxp://www.sitename.com. it means all your backlinks will point to the same site
__________________ |
|
| | #17 |
| is meant to be revising Join Date: Dec 2008 Location: Nottinghamshire
Posts: 6,323
![]() ![]() ![]() ![]() | Many thanks mate. Will get on that
__________________ Free iPad | Free Xbox 360 |Free 3DS Want to know how to get greens (referrals) for FreebieJeebies? I'll tell you how..... Work hard, like the rest of us! Feel free to ask questions! |
|
| | #18 | |
| Romper Stomper | Quote:
__________________ | |
|
| | #19 |
| Super Moderator | Thanks i'll do that tonight then
__________________ ![]() |
|
| | #20 |
| iPod 60gb | Also, make sure that you don't just link to the http://site.com and throw in some links to the http://www.site.com. This'll make Google think your linking is more natural. |
|
![]() |
| Thread Tools | |
| |