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
-
404
We find 404 pages on our company website using Screaming Frog SEO tool. it's important to fix these 404 errors, a web designer can normally help.
Web Design | | sarahwalsh0 -
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 -
Free related posts recommendation solution?
I was preparing to use Diqus plugin to show related posts, but our site has already used another comment solution which is developed ourselves, and I don't think it's a good idea to replace all the comments of the entire site. So is there another free service to show visitors related posts? We are not a WP site, so I can only accepts HTML&JS codes, not WP plugins, etc. And I also don't want it contain external links even if I can benefit from them, because we are in a pretty specific niche, the recommendations to posts on other sites may take our orders away. Thanks
Web Design | | JonnyGreenwood0 -
Entering different but related industry, keep it on the same domain or new domain?
We rank well across many online furniture keywords within google.ie here in Ireland, this is our core business and it is successful. Now we want to branch out into the related field of "kitchens". So the question is do we setup a new domain (a sister site) or keep it on the same domain with a new sub category. So the main categories off the home page would be: Sofas Bedroom Furniture Dining Furniture Kitchens I know all the benefits of keeping to the one domain (the domain has age, and already has DA of 30 with many landing pages with PA from 30 to 49), so for the short term SEO angle keep it on the same domain. But from a Branding perspective this is not a great approach. Is it better to have a dedicated domain/site for kitchens (and the bonus of having a keyword match in the domain)? We are always thinking longer term so we see this as a 3 year plan outwards rather than a get rich quick. There is an additional overhead of course with managment of the domain, templates SSL, PCI etc etc and we are conscious that a new domain is not a easy route to success. Looking at the top 10 for the main keywords within the "kitchen" keyword cloud most if not all are dedicated kitchen sites, or kitchens are the main business so their homepage is there kitchens landing page. The competition in the google.ie space have 20-30 DA and PAs roughly 30 being the highest DA, we are thinking that this has not a huge challenge to overcome? Thanks for any help, assistance or comments really appreciated. Ware regards, Eunan @ Love Furniture
Web Design | | eunaneunan0 -
Text-align: -900% in an absolute element?
I'm having a hard time doing image replacement in an absolute element. I know there is a replacement technique which is ideal for this but the text is larger then the window so when the image is shown over the text, a part would still be visible. Could anyone help me any further?
Web Design | | ldestrooper0