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. On-Page / Site Optimization
    4. Base Href - Usage along with advantages and dis advantages

    Base Href - Usage along with advantages and dis advantages

    On-Page / Site Optimization
    4 2 637
    • 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.
    • zco_seo
      zco_seo last edited by

      Hi Friends,

      I like to add base href in all my web inner pages.

      My doubts is which method is better to use. The details are given below,

      <base href="root domain">

      or

      <base href="root domain/inner pages">

      Research URLs:
      http://www.w3schools.com/tags/tag_base.asp
      http://stackoverflow.com/questions/1889076/is-it-recommended-to-use-the-base-html-tag

      Please share advantages and dis advantages by using this method.

      Thanks

      1 Reply Last reply Reply Quote 0
      • Dr-Pete
        Dr-Pete last edited by

        I don't see it used nearly as much as it used to be, and Google's not always very consistent about interpreting it from an SEO standpoint. So, for example, while <base...>works fine for things like relative image URLs, stylesheets, etc., I wouldn't rely on it for things like the canonical tag (I'd stick to absolute URLs there).</base...>

        It really depends on what you're trying to accomplish, though. What are your goals, or what problem are you trying to solve? Are we talking about a site with dozens of pages or thousands?

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

          Thanks for your reply.  We need to fix some 404 URLS reported from Google Webmaster tools.

          So which method is better to use in all web pages.

          Dr-Pete 1 Reply Last reply Reply Quote 0
          • Dr-Pete
            Dr-Pete @zco_seo last edited by

            Honestly, I wouldn't use base href's to fix 404s in links - I'd fix the links. It depends on the scope, I guess. If the pages are dynamic or we're talking about a few dozen, fixing the links should be pretty easy. If you have thousands of static pages, then that's a bit different, but then you'd have to edit the base tag across all those pages, anyway. I'm having a hard time envisioning a scenario where fixing the links is much more difficult than putting in the base tags, but it's hard to give specific advice without the details.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Is there any advantage to including a subdirectory in a URL?
              james-tb
              james-tb
              2
              7
              638

            • Too much keyword usage in page
              Esaky
              Esaky
              0
              5
              143

            • Prevent Indexing of URLs Based on Tags
              williammarlow
              williammarlow
              0
              4
              209

            • 301 redirect usage
              intSchools
              intSchools
              0
              5
              369

            • On-page keyword usage
              dsabouri
              dsabouri
              0
              4
              499

            • Broad keyword usage vs appropriate keyword usage
              RuthBurrReedy
              RuthBurrReedy
              0
              8
              1.1k

            • What does the "base href" meta tag do? For SEO and webdesign?
              AdoptionHelp
              AdoptionHelp
              0
              2
              5.0k

            • On-page optimisation for CMS based sites
              G-Force
              G-Force
              0
              5
              1.0k

            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