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
-
Publication Date, Modification Date - (Proper) Usage and Effect
Hi, First of all: I think apart from QDF results, effects of this are rather small and trumped by such things as the actual content and value a page offered. Nevertheless I got to wondering how the publication date and modification date are used ... effectively and correctly. Fact: Google displays the publication date on SERPS (if it is given via schema or through the CMS or in any other form). This also applies if you have a date of last modification, for example via schema.org/dateModified - regardless of the extent of changes.
On-Page Optimization | | netzkern_AG
Google only considers the publication date. Google also uses it as an indicator for "freshness". There are quite a few articles on that out there, ex: http://www.kevinmuldoon.com/change-date-article-boost-seo/ and http://www.viperchill.com/new-seo/ Q1: In my opinion, faking the publication date is at the very least a darkish grey area which nonetheless seems to still work. Would you agree? Q2: Would you see it as legitimate to (at some point after thoroughly reworking one page) update the publication date to the date of republication? Case in point: I have a page with book reviews. These reviews do not really go stale - much like recipes; tastes may change a bit, but essentially it stays the same. I find it somewhat irking to see a 10 year old date there - even if I maybe have restructured and rewritten, maybe even completely redone a review... But apart from the question of whether to ever "update" your publication date. I started pondering when it was proper to change the modification date (especially as it seems to have little effect apart from serving as date for last changes in headers, caches etc.)? For example, content changes when Manually changing text a visitor leaves a comment a visitor gives a book/article/page a rating a visitor gives a book a rating and this rating is part of another entity's aggregate rating Q: Which of these events would warrant an update of the last modification? ratings and aggregate ratings typically only change single numbers (vote count and sums/averages); yet there is [legitimate] change and it is utilised in SERPS (review stars). I am still hesitant. My answers would be: Changing the publication date might be valid in case of a MAJOR overhaul with new or lots of extra content - when, for example you could publish the same article again in another issue of the same print magazine the article has been published in before; and all of those changes warrant an update of the last modification, at least as it is currently used, i.e. only to show when change has happened with any real influence. Personally I'd wish for lastModified carrying more weight compared to pubDate AND especially for more google-side checks if actual change has happened. (To be ignored in case of small things like legitimately switching a sentence or correcting a typo; to be penalised if changed when nothing really changes; to honour when real change happens) Looking forward on your opinions for dating content - and of course on your hints what I am forgetting. 🙂 Nico0 -
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 -
Keyword usage in eCommerce Sites - Danger of keyword stuffing?
Hi all, I'm having a little difficulty deciding the best approach for selecting my product titles as I've encountered a few issues. I understand how important it is to try and use the keyword in your product titles, but about the category page that lists all of these products? One of category pages, for example, has 16 products on it. Each has the product title followed by the keyword. I have also used the keyword in the category title, URL, breadcrumbs and two or 3 times (because it was natural) in a paragraph that describes the category etc. Due to the little amount of text on the page, and the sheer amount of times that the keyword is being used, it looks like I am keyword stuffing (By Moz On Page Report Card). I think it came to 23 uses of the same keyword altogether. This is the pretty much teh same throughout every category page on my site, and think I was penalised by Google for this reason. I'm a relatively new site and have done everything by the book as far as I know, so everything is pointing at this to be the cause of the drop/disappearance in ranking. How do I rectify this problem? It's important for the products to have the keyword in, right? As this is one of the SEO practices that is given more weight when considering rankings. I have thought a potential way around this, which is to split the keyword between an exact match, and a variant of the keyword in the titles - only very slightly though. So my product titles would look like 'Product A Exact Match Keyword', 'Product B Variant on Keyword' etc. Could this work? Can anybody advise on the best thing I could try? I have attached an image to give you an idea of the layout of my category pages - Apologies in advance about my embarrassingly rubbish photoshop skills! I wasn't able to upload directly, so I have attached a link. Thanks for reading, John 4iIkmSx
On-Page Optimization | | John_Francis0 -
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 -
Change from Table Based to DIV based
Hello, I am about to change my sitewide template from a table based one to a div based one. I am obviously worried about losing ranking and optimistic it hopefully may improve rankings. Any thoughts/experience on this? I have done my best to keep all content, tags (H, alt, title, etc) the same but figured I would see if anybody had any good tips/suggestions? Thanks!
On-Page Optimization | | JohnHerrigel0 -
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 -
On-page optimisation for CMS based sites
With so many sites being based on a CMS, and with so many hundreds of different CMS out there, as SEO consultants how do you recommend dealing with on-page optimisation for a client where you discover their site is built with a CMS you have not previously used (or even heard of!)
On-Page Optimization | | bjalc20110