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. Technical SEO Issues
    4. Am I Doing this Canonical Right?

    Am I Doing this Canonical Right?

    Technical SEO Issues
    2 2 311
    • 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.
    • Force7
      Force7 last edited by

      Hi,I admit to new to the Mod Rewrite.Here is my mod rewrite in my .htaccess# Begin non-www page protection # <ifmodule mod_rewrite.c="">RewriteEngine On
      RewriteBase /
      RewriteCond %{HTTP_HOST} !^www.domain.com [NC]
      RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]</ifmodule> # End non-www page protection #If I have my home page set toI really want the canonical to be    www.domain.com    no trailing slashDid I create a confllict, and if so, how should I change it?

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

        change this line from RewriteRule ^(.)$ http://www.domain.com/$1 [L,R=301] to RewriteRule ^(.)$ http://www.domain.com$1 [L,R=301]

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • 301 redirect: canonical or non canonical?
          David-Kley
          David-Kley
          0
          5
          466

        • Canonicals
          CleverPhD
          CleverPhD
          0
          2
          77

        • Choosing the right page for rel="canonical"
          jfmonfette
          jfmonfette
          0
          3
          118

        • After I 301 redirect duplicate pages to my rel=canonical page, do I need to add any tags or code to the non canonical pages?
          Mike.Goracke
          Mike.Goracke
          0
          2
          125

        • Canonical URL
          bronxpad
          bronxpad
          0
          3
          263

        • How do I get google to index the right pages with the right key word?
          ursalesguru
          ursalesguru
          0
          5
          196

        • Rel=Canonical
          Dr-Pete
          Dr-Pete
          0
          5
          564

        • Canonical Tag
          Theo-NL
          Theo-NL
          0
          3
          865

        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