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
-
301 and the base URL
Hi, please bear with me as I'm pretty new to all this! I've my base URL but obviously want to add keywords to it for seo purposes. Should I redirect from the base URL to the URL with the keywords appended? So my landing page goes from say www.moz.com to www.moz.com/keywords-here. If I do that, should I replicate all the meta data (descriptions etc) on the original landing page? Or does it not matter? Thanks, Nick
On-Page Optimization | | nickwoodward0 -
How can I maximize my On Page for these two common usages
I have a page that is tuned for this query: 1886 ten dollar bill and I am happy with my placement. The same page performs poorly if someone types: 1886 $10 dollar bill Is there anything I can do short of having another page tuned for the $ rather than 10?
On-Page Optimization | | Banknotes0 -
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 -
Does having landing page text beneath the products at the base of the page hinder SEO?
I have a site that is capable of hosting the landing page description either above the products under the H1 or below them at the bottom of the page before the footer. I have always chosen to keep the text "above the fold" as presumably this would be crawled sooner in relation to the rest of the page content than had it been at the bottom. However, this means that I can only really write just a few sentences for each landing page - otherwise the products would shift further down the page - and I don't think this is good from a UX POV. Question: If I move the bulk of my landing page descriptions to the text snippet located underneath the products, could this negatively affect my SEO? Text at the bottom of the page is obviously not significant for users, so is there a chance this could be seen as spam?
On-Page Optimization | | Silkstream0 -
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 -
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 -
What does the "base href" meta tag do? For SEO and webdesign?
I have encounter the "base href" on one of my sites. The tag is on every page and always points to the home URL.
On-Page Optimization | | jmansd0