The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. How to fix a canonical problem with no htaccess?

    How to fix a canonical problem with no htaccess?

    Intermediate & Advanced SEO
    3 2 757
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bronxpad
      bronxpad last edited by

      Basically I need to find a way to fix my canonical problem. The www and no-www version of my site each show up. This creates duplicate content. I have no htaccess with yahoo. How else can I fix this problem? Does anyone have a sample code I could use?

      1 Reply Last reply Reply Quote 0
      • Webmaster_SEO
        Webmaster_SEO last edited by

        In your Google webmaster account add and verify both the domain http://example.com and http://www.example.com

        Suppose you want to set www version as preferred method then in the Configuration >> Settings of both the domains under webmaster tool set www version as preferred

        Also, you can add the canonical tag under the head section of each page as follows:

        <link rel=<a class="attribute-value">canonical</a> href="[http://www.example.com/actual-page-name-comes-here.html](view-source:http://www.snapdeal.com/deals-delhi)"/>  
        
        bronxpad 1 Reply Last reply Reply Quote 0
        • bronxpad
          bronxpad @Webmaster_SEO last edited by

          Ok, so I don't need a 301 redirect?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Can some one help how to fix spam problem. please see the attached file
            grbassi
            grbassi
            0
            3
            48

          • How to fix it
            LesleyPaone
            LesleyPaone
            0
            2
            70

          • Rel Canonical Link on the Canonical Page
            Stew222
            Stew222
            0
            4
            248

          • REL canonicals not fixing duplicate issue
            OlegKorneitchouk
            OlegKorneitchouk
            0
            2
            194

          • Does rel=canonical fix duplicate page titles?
            AL123al
            AL123al
            0
            10
            1.5k

          • Canonical Problem
            Dr-Pete
            Dr-Pete
            0
            6
            601

          • Canonical Fix Value & Pointer To Good Instructions?
            AlanMosley
            AlanMosley
            0
            3
            918

          • Is having a canonical tag for the link that IS the canonical a negative thing?
            DanDeceuster
            DanDeceuster
            0
            2
            813

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy