Base href
-
I'm having a discussion with a third party that's building a website for a client that I advised concerning his SEO.
The site went live 2 weeks ago and it's not getting indexed very well, so my client asked me what could be the problem.
I checked several things that could be the problem, like an xml sitemap that was missing etc. But there was another thing that I saw in the source code:
<base href="http://www.domain.com/">
Can this be a problem for Google to follow internal links? I always thought that you should use the base href like this:
<base href="http://www.domain.com"> so without the trailing / behind the TLD
And even better using absolute instead of relative links, no?
-
I suggest looking through previous Q&A forum results for various answers that have been provided for this question. Here's the query to find them: https://www.google.com/search?q=seomoz+base+href.
Basically, you are right, you should use absolute links instead of relative links. You only need to use a base href if you are using relative URLs on page and the base href is needed for them to resolve correctly.
The base href you are seeing in the code shouldn't be causing any issues for Google when following internal links. The issues, if any, would be caused by the relative links themselves if they are not set up correctly (this should be easily tested).
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
-
does <base> in html affect seo?
hey, just wanna know does <base> in head of website affect SEO? and if it's a yes, how?
Technical SEO | | m17001 -
Content Based on User's IP Address
Hello, A client wants us to create a page on two different sites (www.brandA.com/content and www.brandB.com/content) with similar content and serve up specific content to users based on their IP addresses. The idea is that once a user gets to the page, the content would slightly change (mainly contact information and headers) based on their location. The problem I am seeing with this is that both brandA and brandB would be different Urls so there is a chance if their both optimized for the similar terms then they would both rank and crowd up the search results (duplicate content). Have you seen something similar? What are your thoughts and/or potential solutions? Also, do you know of any sites that are currently doing something similar?
Technical SEO | | Rauxa0 -
Canonical URLs on location based offers
hello world. i offer first aid courses in different locations in switzerland. now i'm not sure if i have to make the single registration pages rel="canonical" or not. example:
Technical SEO | | alekaj
location 1 -> course list @ Nothelferkurse Thun
location 2 -> course list @ Nothelferkurse Bern the content is almost the same. how do i have to handle with it? thanks for your help!2 -
How can I use a keyword based domain to rank for my existing site?
Hi everyone, From my understanding if your keywords are in your domain name it can help you rank for the keyword. My site www.pixelchefs.com was affected from the latest Google Algorithm changes, as I used my main site as a testing ground for all my back linking. Our site was a single page with Jquery slide, late February the same time with the Google algo changes we uploaded our new site, larger site with lots of pages and info. Result of that was that home page has PR3 and all other pages PR0. Well I don't really depend on Google for any work as most of my work comes from referrals.......but While searching for names for my private page I came across the domain name www.DesignOrlando.com, The specific keyword gets 22,210 view per month according to Google analytics and also contains part of the keyword for all the keywords I am after. I want to use the domain name for my main site but i am not sure what is the best way to forward the domain so Google can start reading my site as DesignOrlando.com Any Suggestions will be very appreciated.
Technical SEO | | alex_pixelchefs0 -
Base HREF set without HTTP. Will this cause search issues?
The base href has been set in the following format: <base href="//www.example.com/"> I am working on a project where many of the programming team don't believe that SEO has an impact on a website. So, we often see some strange things. Recently, they have rolled out an update to the website template that includes the base href I listed above. I found out about it when some of our tools such as Xenu link checker - suddenly stopped working. Google appears to be indexing the the pages fine and following the links without any issue - but I wonder if there is any long term SEO considerations to building the internal links in this manner? Thanks!
Technical SEO | | Nebraska0 -
Using differing calls to action based on IP address
Hi, We have an issue with a particular channel on a lead generation site where we have sales staff requiring different quality of leads in different parts of the country. In saturated markets they require a stricter lead qualification process than those in more challenging markets. To combat the problem I am toying with the idea of severing very slightly different content based on IP address. The main change in content would be in terms of calls to action and lead qualification processes. We would plan to have a "standard" version of the site for when IP location can not be detected. URLs on this version would be the rel="canonical" for the location specific pages. Is there a way to do this without creating duplicate content, cloaking or other such issues on the site? Any advice, theories or case studies would be greatly appreciated.
Technical SEO | | SEM-Freak1 -
Do links count if they have no href parameter?
A SEOmoz report indicates that we have a large number of links on our pages, mainly due to an embedded mega-drop down and lots of product display options that are user activated, but otherwise hidden. Most of the links have the paramter href="#", because the links are used in combination with jQuery to trigger actions. It is still possible to trigger the actions without the href parameter, so the question is: Do links without href parameters count towards the total amount of links on the page, since a link without a href parameter is actually an internal page link? Our site (this version of the site has not had empty tags removed): http://emilea.be/
Technical SEO | | Webxtrakt0 -
Is a redirect based on a session cookie hurting rankings?
My clients business is divided in chain stores. All stores are set under the same franchise. There is one domain www.company.com with branches like www.company.com/location1/content and www.company.com/location2/content etc. I've taken care of duplicate content issues with rel="canonical" and duplicate page titles are also not a concern, anymore. Right now the concept is like this: If you visit the site for the first time you get to choose between the locations. Then a cookie is set and once you revisit www.company.com it will redirect you via a php header command to the location stored in your cookie: www.company.com/location1/content. My question is if this might hurt rankings in some kind of way as these aren't permanent redirects with a 301 but rather individual ones, based on your cookie.
Technical SEO | | jfkorn0