Welcome to the IMTalk - Internet Marketing & SEO Forum.
  • Login:
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Seotic's Avatar
    Seotic is offline IM & SEO Weak Jaw Seotic will become famous soon enough
    Join Date
    May 2011
    Location
    Spain
    Posts
    196
    Thanks Given
    34
    Thanked 82 Times in 56 Posts

    Smile Duplicated content within a website-How to avoid

    Hi all

    I have duplicated content in my website: I have my site with www and without www and the second one do not redirect to the first.
    I was trying to fix the problem using the canonical atribute, but I donīt know if thats enough and in addition I would like to use htaccess to fix the problem.

    Does somebody know how to do this?

    thank you in advance

  2. #2
    pagerank7 is offline IM & SEO Weak Jaw pagerank7 is on a distinguished road
    Join Date
    Jul 2011
    Posts
    117
    Thanks Given
    25
    Thanked 15 Times in 11 Posts
    Every time I create a site my webhost creates a .htaccess file in the public_html folder of the site, then I just add these lines to it and it redirects to www. Make sure every line is on a new line.

    RewriteBase /
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mywebsite.com
    RewriteRule (.*) http://www.mywebsite.com/$1 [R=301,L]

  3. The Following User Says Thank You to pagerank7 For This Useful Post:


  4. #3
    Seotic's Avatar
    Seotic is offline IM & SEO Weak Jaw Seotic will become famous soon enough
    Join Date
    May 2011
    Location
    Spain
    Posts
    196
    Thanks Given
    34
    Thanked 82 Times in 56 Posts
    Hi pagerank7

    Thank you so much for your prompt answer.
    I will try it.
    I am a little bit worried, because some people told me thats quite dangerous if made false.

  5. #4
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    If you have cpanel hosting look for 'redirects' under the domains section. There is a dialog box that allows you to write the redirect to your choice of www or non-www. The syntax will not be a worry if you use the wizard based rewrite tool.

  6. The Following User Says Thank You to wink0r For This Useful Post:


  7. #5
    Seotic's Avatar
    Seotic is offline IM & SEO Weak Jaw Seotic will become famous soon enough
    Join Date
    May 2011
    Location
    Spain
    Posts
    196
    Thanks Given
    34
    Thanked 82 Times in 56 Posts
    Ok, I will take a look at the control panel of my hosting service. Otherwise I was trying to set my domain with www on google webmasters tools, but I donīt know if thats enough.

    Thank you for your answer

  8. #6
    paulnixon is offline IM & SEO Quiet One paulnixon is on a distinguished road
    Join Date
    Nov 2011
    Posts
    8
    Thanks Given
    0
    Thanked 0 Times in 0 Posts
    Actually,i don't know what is the prosier to avoid the duplicated content within a website.So please give me the some information on it.

  9. #7
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    The www and non-www addresses for your site are considered two separate URLs by search robots. Therefore you should choose one and use it in all of your backlinking efforts. It does not make a difference which you choose, just be consistent. Put up a 301 redirect as described above so that traffic for the alternate is redirected to your chosen URL.

    Many CMSs also list the same page by several different URLs. In Wordpress you can search by tag, category, archive date, and probably a few other ways. Each of these returns a different URL. Google introduced the canonical meta tag to tell which is the original content. Some, if not all, SEO plug-ins write the canonical tag to avoid this problem.

  10. #8
    Seotic's Avatar
    Seotic is offline IM & SEO Weak Jaw Seotic will become famous soon enough
    Join Date
    May 2011
    Location
    Spain
    Posts
    196
    Thanks Given
    34
    Thanked 82 Times in 56 Posts
    I used the canonical meta tag to fix the duplicated content problem of my website and I hope thats enough. I set also my site with www on google webmasters tools.
    Only if these measures are not enough I will use htaccess.

  11. #9
    mountainman is offline IM & SEO Quiet One mountainman is on a distinguished road
    Join Date
    Nov 2011
    Posts
    17
    Thanks Given
    0
    Thanked 2 Times in 2 Posts
    Non www to www redirect will get get solve by Canonical tag, You need to do 301 permanent redirect. You need to make changes in Htaccess file and then upload it this proble will get resolve.

  12. The Following User Says Thank You to mountainman For This Useful Post:



 

Similar Threads

  1. Need Expert Website Content Writer
    By playerapX in forum Services
    Replies: 4
    Last Post: 07-25-2011, 05:35 AM
  2. making a mockup doctor website without content
    By hdhsiuo in forum Website Planning, Design & Development
    Replies: 2
    Last Post: 07-19-2011, 08:50 PM
  3. How to hide website content?
    By Hajoless in forum On-Page SEO & Content Creation
    Replies: 4
    Last Post: 07-04-2011, 05:17 AM
  4. Search Engine Optimization Secrets – for effective website content writing
    By journeyoflife7 in forum On-Page SEO & Content Creation
    Replies: 6
    Last Post: 01-13-2011, 10:43 AM
  5. How to copyright content of own website?
    By ankjbp in forum Legal, Copyright, Payment Processing
    Replies: 2
    Last Post: 09-10-2010, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts