Absolute vs relative urls
-
Hello,
Should absolute or relative urls to be used for the internal links? I heard mixed opinions on that:
- One source claims that web crawlers prefer absolute urls as they are more understandable
- Other source points that there is no difference for web crawlers what urls are used and relative urls are shorter which reduces the size of a page.
Which option is recommended?
Many thanks
Darius
-
I agree that there's no longer any difference to the crawlers. However, one other thing worthy of consideration is the possibility of moving the site to a new URL. With relative URLs, you may be saved a lot of painstaking work, whereas with absolutes, every single page will have to be rewritten. There are tools to assist in the task, but it's still a lousy job to undertake.
-
Thanks for all the answers!
Now will have to evaluate all the pros and cons and make the decision. Good point that it has to be consistent
-
What is important is that you remain consistent. Also, I like absolute when pages use rewrite rules, URLs can get broke.
Personally, I always use absolute.
-
From a crawler point of view, I don't believe there is any difference. However, MaryAnneG makes a good point about scrapers. The downside of absolute URLs is they are harder to maintain, especially if you move to a new domain or change the structure of your site.
-
Years ago, the performance advantage of relative urls made them the better choice. These days, that's not a major issue.
One advantage to absolute urls: If your content gets scraped there's a chance that they won't bother looking at the links, so any traffic they pick up will be directed back to YOUR site instead of to another page on the scraper's site.
(Also makes it easier to find the thieves...)
-
Take a look at this thread: http://www.seomoz.org/q/disadvantages-advantages-for-this-e-commerce-url-structure
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
-
Google Treating these URL's as diff, but they are same. please help
Google is treating, below URL's as two different URL's when they are same. How to solve this. Please help. Case 1:/2570/Venture-Capital-and-Capital-Markets/2570/venture-capital-and-capital-marketsCase 2: /xxx/Java-Programming//xxx/Java-ProgrammingPlease help, how to solve this. Thanks in advance
On-Page Optimization | | AnkammaRao0 -
How to exclude URL filter searches in robots.txt
When I look through my MOZ reports I can see it's included 'pages' which it shouldn't have included i.e. adding filtering rules such as this one http://www.mydomain.com/brands?color=364&manufacturer=505 How can I exclude all of these filters in the robots.txt? I think it'll be: Disallow: /*?color=$ Is that the correct syntax with the $ sign in it? Thanks!
On-Page Optimization | | neenor0 -
The value of changing URL structure
Dear Moz members, There have been many questions on this forum on this topic but I cannot find one that completely answers my question. We launched our new website about 7 months ago and the website contains around 3.000 product pages. The average page authority of the product pages is quite still quite low (12). The URL structure is built like this: www.website.com/catalog/ID/productname/ (with right keywords in the product name). So e.g the current URL is Our competitors rank higher on certain keywords while page authority (and DA) are significantly lower. Their URL structure is set up like this: www.website.com/productname/. Our most import keyword is "grafmonumenten" and the link we would like to rank on is: https://www.denhollandsche.nl/grafmonumenten/ My question now is:
On-Page Optimization | | stepsstones
1: how important is the length/depth of the URL structure?
2: is it beneficial for us to change the structure (www.website.com/productname/) use permanent redirects? My expierence is that changing the 'page url' can cause a short term drop in the serps, but can have positive effects on the longer term. Thanks for helping me out!0 -
One post on a keyword updated frequently vs. multiple posts
I'm wondering - which is better for SEO: having one post which is updated frequently or multiple posts on a given topic? Take this example: I write the ultimate guide to grilling steak. This guide should be updated at least yearly, if not more frequently. Should all the updates be applied to the existing post, or should there be a new, yearly post for each yearly guide to grilling steak? Another related question: is it bad for SEO to have a single-page site? Let's go back to the example: what if we create a single page which is the ultimate guide to grilling steak. We don't create additional content or anything else: it's only the guide which continues to get added to over time with new photos, new comments, new ideas, more information, etc. Is that going to rank better than a blog with separate posts that address all the different things that go into grilling steak (choice of meat, cooking methods, useful tools, etc.)? Thanks, --eric
On-Page Optimization | | EricOliver0 -
Errors in URL´s
SEOMOZ is showing quite a lot of URL Errors like this: http://trampoliny.net.pl/akcesoria/pokrowiec-basic?frontend=1825cb1eea3af8ee6ee2d96617d32ff6 All these URL´s use the parameter "?frontend=". In webmaster tools we told google not to index this parameter. Unfortunately at the moment we cannot set this parameter as "NOINDEX". We also dont want to use a robots.txt file. How to get rid of the URLS in Seomoz?
On-Page Optimization | | drgoodcat0 -
Related Items Links
Hi, If an item page has 'related items' links and 'you may also like' links - and both those are essentially the same links, doesn't it make sense to only have one set?
On-Page Optimization | | Freelancer130 -
Can bad text URLs hurt pages?
If you have some pages that contain plain text URLs (not anchored links) that used to be good URLs, but are now bad, either because the website shut down or because it has been acquired by someone else and is now parked (or worse) - are those URLs enough to cause quality problems? For example: This information was brought to you by Waymaker http://www.waymaker.net These aren't the only ones. And yes, I know I should fix them, but there are probably 10,000 pages like it. I will fix them, but its not something I can do in a few minutes. (this one is easy to fix programmatically, but others are a lot more complex) So my question is: do you have actual experience that these are bad enough to cause ranking problems (making them low quality)
On-Page Optimization | | loopyal0 -
If you were working on a wine site would you include the wine year in the URL?
I've come across a case where I'm asking myself what the best direction would be to go and while there is no right direction I would like to here some feedback from others. I'm working with some great content pages all about wine. As you probably know the difference between a 07 wine and a 95 is vastly different and up to this point I'm using the full year in the url much like this: grapesinyourtoesexample.com/2007-cellar-pod-viognier-adelaide-hills/. What I'm worried about is my use of the year in the URL. I feel it's very important for it to be used in the page title and on page but I'm concerned that it might be setting me back with my use of it in the url. My concern is that search engines might be interpretting it as a datestamp rather than as a informational piece of data describing the asset. Looking at my competitors, my content is one of the only sites using the year and in most searches for various wines my content is in the second half of the SERPs. If you were creating this content would you use the year? If you were working with current content would you drop the year across all of the site and implement to necessary redirects? Just to be clear this is a client related project so my use of "my site|my content" refers to the client's content.
On-Page Optimization | | DotCar0