undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. Digital Marketing
  3. Web Design
  4. How to Add canonical tags on .ASPX pages?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

How to Add canonical tags on .ASPX pages?

Web Design
4
6
4.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Ryan-Bradley
    Ryan-Bradley last edited by Aug 8, 2011, 7:26 PM

    What is the proper way (or is it possible) to add canonical tags on website pages that end in .aspx?

    If you add a canonical tag to the Master Page it will put that exact canonical tag on every page, which is bad.

    Is there a different version of the tag to put on individual pages?

    And one to put on the home page without the Master Page error?

    1 Reply Last reply Reply Quote 0
    • nordicnetproducts
      nordicnetproducts last edited by Mar 13, 2013, 3:53 PM Aug 9, 2011, 4:59 AM

      Put a asp:placeholder or asp:literal in masterpage. When you want to have a canonical-tag from an inheriting page, just give placeholder / literal value.

      1 Reply Last reply Reply Quote 1
      • Ryan-Bradley
        Ryan-Bradley @john4math last edited by Aug 9, 2011, 12:27 AM Aug 9, 2011, 12:27 AM

        The Master Page is the main template page that all of the asp pages on the site are based on.  If I put a standard canonical url tag in the Master Page, that canonical url will then be on all of the pages.

        1 Reply Last reply Reply Quote 0
        • Ryan-Bradley
          Ryan-Bradley @mozalbin last edited by Aug 9, 2011, 12:23 AM Aug 9, 2011, 12:23 AM

          Yes that is the correct code for apache sites, but asp sites don't have a section.

          1 Reply Last reply Reply Quote 0
          • john4math
            john4math last edited by Aug 8, 2011, 10:02 PM Aug 8, 2011, 10:02 PM

            The extensions of the pages won't matter, provided you're able to actually put the canonical tag itself within the of the page.  If you put in the , it'll be ignored.

            You only need to put the canonical tag on pages that are duplicates of other pages.  You'll need to be able to specify the correct href for the canonical tag for each page, which is the full URL of the page it's a duplicate of.  If you only have that level of control to place this only on the duplicate pages, you are still ok, as you can have a page rel=canonical to itself (according to Matt Cutts here).  So if all the duplicate URLs and the original URL all rel=canonical to the original page, it should work.  If you don't even have that level of control, you might not be able to use the canonical tag.  I hope that's what you mean by "Master Page"... if you have each master page rel=canonical to itself, it sounds like it could solve this for you.

            FYI, if you can 301 redirect these duplicate pages to the original page, that's the preferred method of resolving duplicate content issues.

            Ryan-Bradley 1 Reply Last reply Aug 9, 2011, 12:27 AM Reply Quote 0
            • mozalbin
              mozalbin last edited by Aug 8, 2011, 7:39 PM Aug 8, 2011, 7:39 PM

              Correct me if I'm wrong but isn't it only to add:

              rel="canonical" href="URL" />

              in the header?

              Ryan-Bradley 1 Reply Last reply Aug 9, 2011, 12:23 AM Reply Quote 0
              • 1 / 1
              1 out of 6
              • First post
                1/6
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              Browse Questions

              Explore more categories

              • Moz Tools

                Chat with the community about the Moz tools.

              • SEO Tactics

                Discuss the SEO process with fellow marketers

              • Community

                Discuss industry events, jobs, and news!

              • Digital Marketing

                Chat about tactics outside of SEO

              • Research & Trends

                Dive into research and trends in the search industry.

              • Support

                Connect on product support and feature requests.

              • See all categories

              Related Questions

              • sb1030

                JSON-LD product page markup for multiple currencies?

                I haven't found a working example of a single product page with one "Offer" in multiple "priceCurrency" and "price" We have product pages with a single product URL which will offer different prices in different currencies based on the user's IP. Some of the language of the page will be translated based on the IP (this will have href lang tag) but the URL will not change. (We're aware TLD is considered best practice, however, this is not an option at this time.) Is the best option to update the markup based on what the corresponding "country"? I'm uncertain how this may be handled by crawlers. Eg, For the product page https://www.example.com/product1 displaying USD "offers": {
                "@type": "Offer",
                "url": "https://www.example.com/product1",
                "itemCondition": "https://schema.org/NewCondition",
                "availability": "InStock",
                "priceCurrency": "USD",
                "price": "7.99"} For the product pagehttps://www.example.com/product1 displaying EUR "offers": {
                "@type": "Offer",
                "url": "https://www.example.com/product1",
                "itemCondition": "https://schema.org/NewCondition",
                "availability": "InStock",
                "priceCurrency": "EUR",
                "price": "7.50"} Thanks for any input.

                Web Design | Jan 15, 2020, 4:30 AM | sb1030
                0
              • vtmoz

                Dead end pages are really an issue?

                Hi all, We have many pages which are help guides to our features. These pages do not have anymore outgoing links (internal / external). We haven't linked as these are already 4th level pages and specific about particular topic. So these are technically dead end pages. Do these pages really hurt us? We need to link to some other pages? Thanks

                Web Design | Jun 28, 2017, 2:50 AM | vtmoz
                0
              • McTaggart

                Location of body text on page - at top or bottom - does it matter for SEO?

                Hi - I'm just looking at the text on a redesigned homepage. They have moved all the text to the very bottom of the page (which is quite common with lots of designers, I notice - I usually battle to move the important text back up to the top). I have always ensured the important text comes at the top, to some extent - does it matter where on the page the text comes, for SEO? Are there any studies you can point me to? Thanks for your help, Luke

                Web Design | Jan 27, 2017, 12:22 PM | McTaggart
                2
              • nchachula

                Magento Category H1 Tags

                I am currently using magento and have all titles labeled correctly. I have made a H1 tag for the main page which works fine. Each product title becomes and H1 tag, which again is fine. However my category pages are missing H1 tags. If I manually code an H1 tag, then there becomes 2 H1 tags. It is using my category name then my manual H1 tag. I don't want it to use my category name because it is shortened to fit on my navigation bar.
                Ex. www.mydomain.com/tshirts/short-sleeve 
                In this example the subcategory title is short sleeve. When using MOZ tool on frontend it shows NO H1 tag or the title becomes H1 tag "short sleeve" however I want the H1 to actually be "short sleeve tshirts"
                If I manually add an H1 tag to description on category page it adds both the title AND the H1 tag I enter.

                Web Design | Feb 18, 2015, 1:33 PM | nchachula
                0
              • JoshAM

                Multiple Local Schemas Per Page

                I am working on a mid size restaurant groups site.  The new site (in development) has a drop down of each of the locations.  When you hover over a location in the drop down it shows the businesses info (NAP).  Each of the location in the Nav list are using schema.org markup. I think this would be confusing for search robots.  Every page has 15 address schemas and individual restaurants pages NAP is at the below all the locations' schema/NAP in the DOM. Have any of you dealt with multiple schemas per page or similar structure?

                Web Design | Aug 8, 2013, 4:45 PM | JoshAM
                0
              • BobAnderson

                Link colour on page?

                I always thought that the link colour has to be different from text colour? I have come across a site http://www.printandpackaging.co.uk/ and it has made me question this belief, they seem to only have bolded the link which would be very nice if this is  fine.

                Web Design | Apr 8, 2013, 9:15 PM | BobAnderson
                0
              • HMK-NL

                Best layout pages for SEO

                Dear all, what would be the ideal layout of a webpage for SEO? How would a homepage and landingspage look like? Thanks in advance! Best regards, Ben

                Web Design | Nov 6, 2012, 10:11 AM | HMK-NL
                0
              • bsofttech

                Landing pages vs internal pages.

                Hey everyone I have run into a problem and would greatly appreciate anyone that could weigh in on it. I have a web client that went to an outside vendor for marketing. The client asked me to help them target some keywords and since I am new to the SEO world I have proceeded by researching the best keywords for the client. I found 6 that see excellent monthly searches. I then registered the .com and or .net domain names that match these words. I then started building landing pages that make reference to the keyword and then have links to his site to get more info. My customer sent the first of these sites to the marketer and he says I am doing things all wrong. He says rather then having landing pages like this I should just point the domain names at internal pages to the website. He also says that I should not have different looks for the landing pages from the main site and that I should have the full site menu on each landing page. I wanted to here what everyone here has to say about the pros and cons of the way to do this cause the guy giving the advice to me has a lower ranking site then I do and I have only started working on getting my site ranked this year. He has atleast according to him been doing this forever. Thanks, Ron

                Web Design | Mar 5, 2012, 9:40 AM | bsofttech
                0

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

              Access all your tools in one place. Whether you're tracking progress or analyzing data, everything you need is at your fingertips.

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

              Looks like your connection to Moz was lost, please wait while we try to reconnect.