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. What does the "base href" meta tag do? For SEO and webdesign?

    What does the "base href" meta tag do? For SEO and webdesign?

    On-Page / Site Optimization
    2 2 5.0k
    • 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.
    • jmansd
      jmansd last edited by

      I have encounter the "base href" on one of my sites.  The tag is on every page and always points to the home URL.

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

        <base> allows you to set the default attributes for links on the page. For example if I set <base href="http://www.mydomain.com/"> then I can make a link to and it will point to http://www.mydomain.com/mypage.html

        I believe this magic happens on the web server before the page is sent to the browser, making it a safe practice for SEO.

        1 Reply Last reply Reply Quote 2
        • 1 / 1
        • First post
          Last post
        • Changing a product page from "example.com" to "example.com/keyword" affect SEO and Ranking?
          Alexrobi
          Alexrobi
          0
          3
          58

        • Thoughts on adding "near me" to title tag for local SEO?
          MiriamEllis
          MiriamEllis
          0
          5
          1.4k

        • What are "stop" words in Title Tags?
          WhiteboardCreations
          WhiteboardCreations
          0
          3
          6.2k

        • "Heading 1" vs. "Title" Style for SEO
          Kara.Wallace
          Kara.Wallace
          0
          15
          1.3k

        • Should we completely avoide using "Meta Keyword" Tag?
          posy
          posy
          0
          4
          452

        • Meta tag "revisit after" - useful?
          targi42
          targi42
          0
          6
          15.5k

        • Does Google pick up on words such as "in", "the", "and" etc?
          Dr-Pete
          Dr-Pete
          0
          4
          577

        • Missing meta descriptions on indexed pages, portfolio, tags, author and archive pages. I am using SEO all in one, any advice?
          jeffreytrull1
          jeffreytrull1
          0
          2
          1.4k

        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