Relative or Absolute???
-
https://moz.com/learn/seo/internal-link
https://moz.com/blog/relative-vs-absolute-urls-whiteboard-fridayI have read both articles above, however further reading the comments that followed, it appears that neither provided an answer. Some said Absolute and some were determined that Relative linking is the only way to go. There were heated comments, apologetic comments and mostly comments agreeing to disagree.
But in the end I think what I got out of it was there are two sides to developing a site.
Side A: Web Developer Standpoint, Relative (easier)
Side B: SEO Standpoint, Absolute (harder)
To me Side B puts money in the bank, so I will go with B.
Now since we’ve been dealt the recent https algo, there seem to more opinions that are thrown into the question. All I’m asking for is a straight answer so our employees can feel confident that our efforts are not in loss. I also want to ask about how images should be linked internally.
NOTE: Our sites are not all https but have SSL’s in place, and 301 redirects reflect http versions of pages.
So since it appears Absolute linking is the preferred method, I ask which is the best option or an option at all.
Internal Navigation:
Current internal link - /store/pc/Rollators-c379.htm
Absolute Options
http://www.company.com/store/pc/Rollators-c379.htm (what I see for most Absolute links)
www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)
//www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)All three links above resolve to www.company.com/store/pc/Rollators-c379.htm with no http:// in front. If I type https://www.company.com/store/pc/Rollators-c379.htm in the url it resolves to https://www.company.com/store/pc/Rollators-c379.htm with the https:// in front.
Internal Images:
If I want my images to be indexed as well as pages should I be using Absolute links for them as well?
Current internal image link - /store/pc/images/rollators.jpg
Absolute Options
http://www.company.com/store/pc/images/rollators.jpg (what I see for most Absolute links)
www.company.com/store/pc/images/rollators.jpg (would this work for both http and https?)
//www.company.com/store/pc/images/rollators.jpg (would this work for both http and https?)Just once I would like an answer that’s not:
It depends on the site or it doesn’t matter which method you use, they both work lol.I would like one that says google likes this better.
Thanks for taking the time to help us understand and can’t wait for MOZ Con this September.
-
Hi Mike,
I think you might get a lot of different opinions again (just like in Ruth's WBF comments) but I think it is pretty safe to say that Google likes sites that are consistent and clear in their internal linking and that do not return a bunch of 404 pages due to bad linking structure or linking mistakes.
So with this in mind the first thing to do is decide what your final url structure is going to be. Is it https or http? is it with www on non www?
Once this is decided then really 95% of any potential troubles should be solvable with a few lines of code in your htaccess file which will 301 any queries to urls that are not in the final format you have decided on to that format. This means that if you have decided on https and non www then even if google (or any user) comes into the site on a http or www url then the redirect takes them to the https:// version and everything else that is crawled from then should be in the format you have decided on. So far so good.
There are two main issues where you might still have problems and this is likely where different opinions will appear as to which problem is more likely to happen and/or be more difficult to fix.
Problem 1: Bad implementation of internal relative linking
The comments on Ruth's post about spider traps due to missing the / at the beginning of relative urls (and lots of other weird relative url formatting mistakes) happens quite often and on larger sites can seriously damage your crawl budget by creating literally thousands of bad links to 404 pages. This is bad news! There are ways to address this either using a base href tag or simply by editing the relevant links. The moz crawl report will flag these kind of issues so you will find out pretty quickly if you have this kind of problem.Problem 2: Having to manually edit absolute urls because you have decided on changing the final url structure of your site.
You mention you have a ssl certificate in place but are not using https at the moment. It is probably safe to assume you will be at some point in the future though I would assume? If so, how many man hours are you willing to dedicate to editing all your absolute http urls to https urls if you decide to do this change? Maybe your tech team can do this by editing urls directly in the database and this is not a big issue for you (although these kind of actions need special care to make sure mistakes do not creep in) - if so then this might not be a big issue for you and in that case feel free to use absolute urls and feel good about it!The above is relevant for images as well as for pages. At the end of the day google wants to be able to crawl your site easily and to find real content/images and not 404 errors all over the place. If you ensure this it doesn't matter much if you are using absolute or relative urls (I guess I better say in my opinion) - you are returning the same content on the same urls in both cases so really why would google care?
if it is easy to put absolute urls in the main menu then do it. If it is a nightmare to edit 1000's of relative urls in product descriptions then just make sure they return valid urls and you should be fine.A note on your url examples:
http://www.company.com/store/pc/Rollators-c379.htm (what I see for most Absolute links)
www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)
//www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)Only the first of those is an absolute url, the second and third are relative urls of one sort or another and are likely to cause you lots of problems. Either use absolute urls with full https or http, or use relative urls with a trailing / (and make sure you do not have spider traps). Do not use those other examples, they will cause you grief! Hope it helps, I am sure others will chime in
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
-
What type of website is best for seo.
I need a new website for my health insurance business. What type is best for SEO? Many thanks
Web Design | | laurentjb0 -
What things i should do to add more attractiveness in my site?
I have 4 years of experience in feedback and survey of different companies for the people who want to learn some from online education about how to do something? and people want to get ease in daily life skills Kroger feedback provides them with a platform to learn everything about surveys and how to drive some to its highest peaks. It all works for People out there through Education SO I have now my own website ready to go but there is a problem in its on-page ranking factors I shall be thankful to you if some from you answer my question What things I should do to add more attractiveness to my site? take a look at my recent view of my site take a look at this Kroger feedback if somebody from you can answer my request??
Web Design | | SEOTOOLS021 -
My visibility went from 14% to 3.33% this week. HTTPS Change?
So I am trying to figure out how my google rankings dropped from 3 to 9 This past week. Could it be the new HTTPS security issue? My site was created in HTTP not HTTPS. Is this an easy fix? Can I hire someone on this site to fix this?
Web Design | | Boodreaux2 -
Wordpress Tag Organization Tips
Curious if anyone has some good examples of ways to organize your WordPress tags without making your sidebar a football field long and hard to navigate. My blog is https://karmahill.com/blog and I could use some ideas. We have main categories of photo shoot types, for example, "Couples", located on the sidebar. We want to add tags to go with those main categories for further categorization and user experience example: Couples Engagement Proposals Honeymoon Maternity My question is, do I need to make "tag" pages for those posts to reside on or is their another way to get it done with less work, that is much faster? I don't want to have to make 30 tag pages or is that just what you have to do?
Web Design | | photoseo13 -
Thinking about redesigning site to reduce bounce rate - have a couple of questions
BACKGROUND Im looking at redesigning the website for a creative consultancy to improve the user experience. The website is mainly an image portfolio along with “press”, “our services”, “about us”, “contact” pages. I originally designed the website a few years ago and when we did, we wanted to make the image portfolio the most important feature. So we made it a full screen JS image slider with lazy loading of images, so that there are about 40 full screen images on the homepage that rotate. From a users point of view i still feel this is the best system as it very quickly allows them to browse the portfolio, which we looking for a creative consultancy is their UPS (unique selling point). The site has a very strong backlink profile compared to its competitors in the SERPS it has about 20-25% increase in PA and DA. But our site has been slipping down the rankings in recent years / months. From spot 1-2 to about spot 5-7. MY HYPOTHESIS I think that the reason the site may be dropping back in the SERP is that although its a very usable site, all its portfolio information is “too easy to find / view” and results in a user coming to our site, seeing everything they need to see, then bouncing back to the SERP. Our site has a bounce rate of 40-60%. Where as on competitors sites, their “portfolio” is a separate page off the homepage, so a users has to click through to a separate page, and even if they don't like the design content of the portfolio it doesn't get logged as a bounce. MY QUESTION Does bounce rate affect SERP ranking ? Could the sites SERP performance be improved by redesigning the site to put the portfolio on a separate page so a user would have to click through to it, if that would get the bounce rate down, would the site see a benefit even if people still clicked back to the SERP results eventually after seeing our portfolio, even though it wasn't a true 1 page bounce ? Dose time on site affect SERP ranking ? Is there a way i can see a competitor's bounce rate ? Would welcome any other thoughts inputs on this matter.
Web Design | | sl_pa0 -
Payment Options in Footer
Hi Moz Community. I'm currently working on cleaning up a website footer on an e-commerce site. I was curious to find out if including payment options is important? Either text or image icons. Including Visa, AMEX etc. Are there benefits of displaying them? Image attached. Thanks vcdoL
Web Design | | Kdruckenbrod0 -
Increase in Soft 404s due to Custom 404 page?
Hi all, We have noticed recently soft 404s are increasing day by day; which are landing on our custom 404 page created a month back. Other 404 pages are NOT landing on custom 404 page. Does this custom 404 page hurting us by causing an increase in soft 404s? Our CMS is WordPress. Thanks
Web Design | | vtmoz0 -
Best way to handle related content links in a sidebar?
My site contains tens of thousands of articles, studies, multimedia files, biographies, etc. To assist users with finding content that might be related to the page they're on, I use a side bar with 'also of interest' links to other, similar content on my site. This is, of course, pretty standard practice. Search engines -- Google in particular -- index these pages and then include the text in the sidebar links in search results. So, for example, on a given page I may have 20 links to related content, and the text in those links might be, 'A story about subject ABC.' When I search for 'A story about subject ABC,' Google returns not only the page titled (and containing the content) 'A story about subject ABC.' but also every page that links to it and happens to have that link text in the sidebar. What is the proper way to handle this kind of thing?
Web Design | | smorrison0