Base Href - Usage along with advantages and dis advantages
-
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-tagPlease share advantages and dis advantages by using this method.
Thanks
-
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.
-
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.
-
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?
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
Will German meta data help an English USA-based site get found in Germany?
I think I already know the answer to this, but I'd love a second opinion. If you add German meta data to some web pages will it help those pages turn up in search results in Germany?I'm assuming not. It's an English, USA based site, doing well here for English searches - and I don't want to mess that up. A German site is being planned, but this client is hoping the English site could be found in the meantime. ~Caro
On-Page Optimization | | Caro-O0 -
Advantage of using LocalBusiness rich snippets?
I am working on a website that has company profile pages. What are the advantages of using LocalBusiness rich snippets for profiles?
On-Page Optimization | | calf0 -
Changing Location & Losing Location Based Keywords
We're a web agency, and we've just moved from Bromley to Sevenoaks. Our website ranks really well for all Bromley led keywords and regularly brings enquiries, but we're no longer based in Bromley. We don't want to lose our rankings, but clearly we can't claim to be based in Bromley when we are now in Sevenoaks. Obviously, we also need to start using Sevenoaks to build up traction for searches in our new area. So the question is - should we create a Bromley or Sevenoaks focused landing page (or both)? Should we change all references of Bromley to Sevenoaks across the site in one go or gradually? Would it be terrible to leave Bromley onsite? Thanks!
On-Page Optimization | | Ecce0 -
Does keyword usage in the footer have an effect on how high a page ranks?
My client has a lot of text about their company in their footer. Is the text in the footer associated with the on page keyword usage and density for all pages or none of the pages?
On-Page Optimization | | Santaur0 -
301 redirect usage
I just wondering if using a lot of 301 redirects could hurt to my seo? We have site which have a lot of content with such links: title: This Is Title page url: www.site.com/This-Is-Title-page.html and we use for each page 301 redirect to remove capital letters in url: www.site.com/this-is-title-page.html Is this is good idea and not hurting to seo ? Thanks in advance
On-Page Optimization | | bele0 -
Broad keyword usage vs appropriate keyword usage
May I ask what is the difference between "broad keyword usage" and "appropriate keyword usage" that is included on the on-page reports? thank you!
On-Page Optimization | | karalyte0 -
Disadvantages & Advantages for this e-commerce URL Structure
Hi all, Just a simple question. What's the disadvantages/advantages to using this URL structure for an ecommerce site: **Category structure: **/category **Subcategory structure: **/subcategory **Product structure: **/product Compared to the standard: /category/subcategory/product Thanks, Nick
On-Page Optimization | | NickPateman810