eXceem

Go Back   eXceem > Websites > Website Design Guides & Articles

Claim your amazing £1,000 slots booster bonus now!


Useful SEO Tip

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 ...

Reply
 
Thread Tools
Old 09-03-09, 10:11 PM   #1
iBook
 
grabrail's Avatar
 
Join Date: Dec 2006
Location: Nottingham
Posts: 2,325
grabrail is a name known to allgrabrail is a name known to allgrabrail is a name known to allgrabrail is a name known to all
Send a message via MSN to grabrail

Useful SEO Tip


We 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]
Replace mysite.com and www.sitename.com with your own domain name

Hope this helps some of the beginners out there like me
 
Reply With Quote
Old 09-03-09, 10:40 PM   #2
Mini Mac
 
ndev2k's Avatar
 
Join Date: Jun 2008
Location: St Helens
Posts: 4,219
ndev2k is a name known to allndev2k is a name known to allndev2k is a name known to allndev2k is a name known to all
Send a message via MSN to ndev2k Send a message via twitter to ndev2k
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
__________________
Free Stuff |Free iPhone 3GS | Free Nintendo Wii | Free PS3 | Free Stuff
Spoiler

 
Reply With Quote
Old 09-03-09, 10:53 PM   #3
1 new message
 
omairt's Avatar
 
Join Date: Jul 2007
Location: Omicron Persei 8
Posts: 2,518
omairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud of
Quote:
Originally Posted by grabrail View Post
Code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^sitename.com  [nc]
rewriterule ^(.*)$ http://www.sitename.com/$1  [r=301,nc]
Does this change the site name from sitename.com to www.sitename.com, or www.sitename.com to sitename.com?
 
Reply With Quote
Old 09-03-09, 10:55 PM   #4
iBook
 
grabrail's Avatar
 
Join Date: Dec 2006
Location: Nottingham
Posts: 2,325
grabrail is a name known to allgrabrail is a name known to allgrabrail is a name known to allgrabrail is a name known to all
Send a message via MSN to grabrail
basically if somebody visits sitename.com they actually get to www.sitename.com
 
Reply With Quote
Old 09-03-09, 10:57 PM   #5
1 new message
 
omairt's Avatar
 
Join Date: Jul 2007
Location: Omicron Persei 8
Posts: 2,518
omairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud ofomairt has much to be proud of
Quote:
Originally Posted by grabrail View Post
basically if somebody visits sitename.com they actually get to www.sitename.com
So to have them go from www.sitename.com to sitename.com, do I just swap the URLs in the code?
 
Reply With Quote
Old 09-03-09, 10:59 PM   #6
iBook
 
grabrail's Avatar
 
Join Date: Dec 2006
Location: Nottingham
Posts: 2,325
grabrail is a name known to allgrabrail is a name known to allgrabrail is a name known to allgrabrail is a name known to all
Send a message via MSN to grabrail
i would imagine so yeah, ive never seen it done that way though
 
Reply With Quote
Old 09-03-09, 11:41 PM   #7
iPod 60gb
 
nickjett's Avatar
 
Join Date: May 2008
Location: Northampton
Posts: 1,756
nickjett is just really nicenickjett is just really nice
I believe you can do this via Google webmaster tools also.
__________________
 
Reply With Quote
Old 10-03-09, 05:05 PM   #8
£50,000 Club
 
tombsc's Avatar
 
Join Date: Nov 2005
Location: Down Under
Posts: 1,665
tombsc is just really nicetombsc is just really nice
I think some hosts do this automatically. Mine does (I think)
__________________
Received...
Spoiler
 
Reply With Quote
Old 12-04-09, 03:14 AM   #9
iPod Shuffle
 
Join Date: Apr 2009
Posts: 16
bigalreturn is on a distinguished road
Quote:
Originally Posted by omairt View Post
So to have them go from www.sitename.com to sitename.com, do I just swap the URLs in the code?
Spot on. As mentioned above you can do it through Google Webmaster Tools, but it's not 100% reliable, so better doing it with your code.
 
Reply With Quote
Old 21-07-09, 05:29 PM   #10
iPod Nano 1GB
 
aquascene's Avatar
 
Join Date: Jul 2009
Location: Limerick, Ireland.
Posts: 85
aquascene is an unknown quantity at this point
This is good, thanks for posting it, i will change my site straight away
 
Reply With Quote
Old 27-01-10, 01:20 PM   #11
iPod 30gb
 
Nero's Avatar
 
Join Date: Jan 2010
Location: Cheltenham England
Posts: 1,492
Nero has a spectacular aura about
Cool. and "www.sitename.com" is a redirect to a real site
__________________
 
Reply With Quote
Old 27-01-10, 01:25 PM   #12
Super Moderator
 
MJ10's Avatar
 
Join Date: Nov 2008
Location: Thatcham, Reading
Posts: 14,563
MJ10 is a splendid one to beholdMJ10 is a splendid one to beholdMJ10 is a splendid one to beholdMJ10 is a splendid one to beholdMJ10 is a splendid one to behold
Send a message via twitter to MJ10
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
^^ See what I have received and how I'm doing ^^

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



 
Reply With Quote
Old 27-01-10, 02:45 PM   #13
Super Moderator
 
rider900's Avatar
 
Join Date: Apr 2008
Posts: 7,533
rider900 is a glorious beacon of lightrider900 is a glorious beacon of lightrider900 is a glorious beacon of light
Send a message via MSN to rider900
So all we do it enter that code, with our own domains, into the website on the html bit?

Nothing else?
__________________
 
Reply With Quote
Old 27-01-10, 02:47 PM   #14
Mini Mac
 
Harvez's Avatar
 
Join Date: Nov 2006
Location: l33dz
Posts: 9,421
Harvez has a brilliant futureHarvez has a brilliant futureHarvez has a brilliant futureHarvez has a brilliant futureHarvez has a brilliant futureHarvez has a brilliant future
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.


 
Reply With Quote
Old 27-01-10, 02:53 PM   #15
is meant to be revising
 
Amiethest's Avatar
 
Join Date: Dec 2008
Location: Nottinghamshire
Posts: 6,323
Amiethest is a name known to allAmiethest is a name known to allAmiethest is a name known to allAmiethest is a name known to all
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!
 
Reply With Quote
Old 27-01-10, 03:08 PM   #16
Call me Vlad
 
Larkino's Avatar
 
Join Date: Jun 2008
Location: South London
Posts: 9,503
Larkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond repute
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
__________________
 
Reply With Quote
Old 27-01-10, 06:24 PM   #17
is meant to be revising
 
Amiethest's Avatar
 
Join Date: Dec 2008
Location: Nottinghamshire
Posts: 6,323
Amiethest is a name known to allAmiethest is a name known to allAmiethest is a name known to allAmiethest is a name known to all
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!
 
Reply With Quote
Old 27-01-10, 06:55 PM   #18
Romper Stomper
 
Cruelworld's Avatar
 
Join Date: May 2009
Location: Behind the fridge...
Posts: 3,764
Cruelworld is a glorious beacon of lightCruelworld is a glorious beacon of lightCruelworld is a glorious beacon of light
Send a message via twitter to Cruelworld
Quote:
Originally Posted by Amiethest View Post
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?
Add the http://domain as a new site and just hit verify, then you can set your preferred settings to http://www.domain
 
Reply With Quote
Old 28-01-10, 08:23 AM   #19
Super Moderator
 
rider900's Avatar
 
Join Date: Apr 2008
Posts: 7,533
rider900 is a glorious beacon of lightrider900 is a glorious beacon of lightrider900 is a glorious beacon of light
Send a message via MSN to rider900
Thanks i'll do that tonight then
__________________
 
Reply With Quote
Old 29-01-10, 01:02 PM   #20
iPod 60gb
 
Dunstan's Avatar
 
Join Date: Oct 2005
Posts: 1,845
Dunstan is a glorious beacon of lightDunstan is a glorious beacon of lightDunstan is a glorious beacon of light
Send a message via MSN to Dunstan
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.
 
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off





All times are GMT. The time now is 10:17 PM.
All trademarks and copyrights held by respective owners. Forum posts are owned by the poster.

Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO
no new posts