Go Back   eXceem > Websites > Website Design Guides & Articles


Get a Free iPhone 3GS with Free3GiPhone.com


Reply
 
LinkBack Thread Tools
Old 09-03-09, 10:11 PM   #1
iBook
 
grabrail's Avatar
 
Join Date: Dec 2006
Location: Nottingham
Posts: 2,138
Thanks: 696
Thanked 559 Times in 370 Posts
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
__________________
Offline  
Reply With Quote
The Following 8 Users Say Thank You to grabrail For This Useful Post:
Adr1an (10-02-10), aquascene (26-07-09), chapperzUK (01-02-10), Madex (01-02-10), MJ10 (09-03-09), Nero (27-01-10), omairt (09-03-09), psp4lyf (10-03-09)
Old 09-03-09, 10:40 PM   #2
is looking for a new job
 
ndev2k's Avatar
 
Join Date: Jun 2008
Location: St Helens
Posts: 2,469
Thanks: 503
Thanked 631 Times in 570 Posts
ndev2k is a glorious beacon of lightndev2k is a glorious beacon of lightndev2k is a glorious beacon of light
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 Wii | Free iPhone | Free iPad | Free Nexus One | Free Stuff
Spoiler

Offline  
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,520
Thanks: 877
Thanked 988 Times in 699 Posts
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?
__________________
Offline  
Reply With Quote
Old 09-03-09, 10:55 PM   #4
iBook
 
grabrail's Avatar
 
Join Date: Dec 2006
Location: Nottingham
Posts: 2,138
Thanks: 696
Thanked 559 Times in 370 Posts
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
__________________
Offline  
Reply With Quote
The Following User Says Thank You to grabrail For This Useful Post:
omairt (09-03-09)
Old 09-03-09, 10:57 PM   #5
1 new message
 
omairt's Avatar
 
Join Date: Jul 2007
Location: Omicron Persei 8
Posts: 2,520
Thanks: 877
Thanked 988 Times in 699 Posts
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?
__________________
Offline  
Reply With Quote
Old 09-03-09, 10:59 PM   #6
iBook
 
grabrail's Avatar
 
Join Date: Dec 2006
Location: Nottingham
Posts: 2,138
Thanks: 696
Thanked 559 Times in 370 Posts
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
__________________
Offline  
Reply With Quote
The Following User Says Thank You to grabrail For This Useful Post:
omairt (09-03-09)
Old 09-03-09, 11:41 PM   #7
Who's InkJet?
 
nickjett's Avatar
 
Join Date: May 2008
Location: Northampton
Posts: 1,504
Thanks: 77
Thanked 264 Times in 204 Posts
nickjett is just really nicenickjett is just really nice
I believe you can do this via Google webmaster tools also.
__________________
Free Ps3 - Free Stuff Online - Free iPods

ImageDive.co.uk - Free Online Image Hosting


Offline  
Reply With Quote
Old 10-03-09, 05:05 PM   #8
IOU MJ10
 
tombsc's Avatar
 
Join Date: Nov 2005
Location: Melbourne
Posts: 1,158
Thanks: 247
Thanked 241 Times in 185 Posts
tombsc is just really nicetombsc is just really nice
I think some hosts do this automatically. Mine does (I think)
__________________
Received...
Spoiler
Offline  
Reply With Quote
Old 12-04-09, 03:14 AM   #9
iPod Shuffle
 
Join Date: Apr 2009
Posts: 16
Thanks: 0
Thanked 21 Times in 5 Posts
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.
Offline  
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
Thanks: 11
Thanked 4 Times in 4 Posts
aquascene is an unknown quantity at this point
This is good, thanks for posting it, i will change my site straight away
Offline  
Reply With Quote
Old 27-01-10, 01:20 PM   #11
iPod Nano 4GB
 
Nero's Avatar
 
Join Date: Jan 2010
Location: Cheltenham England
Posts: 386
Thanks: 67
Thanked 57 Times in 56 Posts
Nero is an unknown quantity at this point
Cool. and "www.sitename.com" is a redirect to a real site
__________________


Offline  
Reply With Quote
Old 27-01-10, 01:25 PM   #12
iMac here I come!
 
MJ10's Avatar
 
Join Date: Nov 2008
Location: Bath/Guildford
Posts: 5,994
Thanks: 2,526
Thanked 1,226 Times in 1,068 Posts
MJ10 is a name known to allMJ10 is a name known to allMJ10 is a name known to allMJ10 is a name known to all
Well cheers for the 6months bump!

But still, it's useful and I still need to get around to doing this!
__________________
Free iTunes Voucher | Free iPhone 3Gs | Free iPad | Free iPhone | Free Xbox | LOVEFiLM trial
RECEIVED: £275 Amazon | £85 Amazon | Wii Black + Game | £40 Custom Order










Offline  
Reply With Quote
Old 27-01-10, 02:45 PM   #13
Mini Mac
 
rider900's Avatar
 
Join Date: Apr 2008
Location: I'm not saying that!!
Posts: 4,189
Thanks: 1,268
Thanked 1,010 Times in 941 Posts
rider900 is just really nicerider900 is just really nice
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?
__________________
Online  
Reply With Quote
Old 27-01-10, 02:47 PM   #14
Pig or Owl?
 
Harvez's Avatar
 
Join Date: Nov 2006
Location: (o)(o)
Posts: 5,966
Thanks: 432
Thanked 1,546 Times in 1,003 Posts
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
Offline  
Reply With Quote
Old 27-01-10, 02:53 PM   #15
Mini Mac
 
Amiethest's Avatar
 
Join Date: Dec 2008
Location: Nottinghamshire
Posts: 4,426
Thanks: 948
Thanked 962 Times in 864 Posts
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?
Offline  
Reply With Quote
Old 27-01-10, 03:08 PM   #16
Trollin'
 
Larkino's Avatar
 
Join Date: Jun 2008
Location: South London
Posts: 7,902
Thanks: 1,000
Thanked 1,930 Times in 1,536 Posts
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
Offline  
Reply With Quote
The Following User Says Thank You to Larkino For This Useful Post:
rider900 (28-01-10)
Old 27-01-10, 06:24 PM   #17
Mini Mac
 
Amiethest's Avatar
 
Join Date: Dec 2008
Location: Nottinghamshire
Posts: 4,426
Thanks: 948
Thanked 962 Times in 864 Posts
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
Offline  
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: 841
Thanks: 171
Thanked 224 Times in 163 Posts
Cruelworld is just really niceCruelworld is just really nice
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
Offline  
Reply With Quote
Old 28-01-10, 08:23 AM   #19
Mini Mac
 
rider900's Avatar
 
Join Date: Apr 2008
Location: I'm not saying that!!
Posts: 4,189
Thanks: 1,268
Thanked 1,010 Times in 941 Posts
rider900 is just really nicerider900 is just really nice
Send a message via MSN to rider900
Thanks i'll do that tonight then
__________________
Online  
Reply With Quote
Old 29-01-10, 01:02 PM   #20
iPod 30gb
 
Dunstan's Avatar
 
Join Date: Oct 2005
Posts: 1,384
Thanks: 287
Thanked 385 Times in 262 Posts
Dunstan is just really niceDunstan is just really nice
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.
Offline  
Reply With Quote
The Following User Says Thank You to Dunstan For This Useful Post:
MJ10 (29-01-10)
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 On




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

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