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
-
Making Shopify URL's Simpler - Losing the words 'collection', 'product' and 'page' in a Shopify store URL. Any advice?
Hi Mozers! I have a Shopify store (of which there are many advantages) however one big SEO disadvantage, is that my URL structures contravene all Moz advice on dynamic URL structure and whats more I am reminded about this every week when I have a Moz site crawl and I have a batch of URL's that are longe than the 75 characters. A Shopify URL will run www.domain name.com/collections/collection-name/product/product-name. According to advice a it should be www.domain name.com/collection-name/product-name - Don't even get started on sub-collections! I sell portfolio books, album etc and keepsake memory boxes (so long keywords) AND, I have a long(ish) business name. So, For user experience and keyword length, do I just ignore trying to achieve a dynamic URL under 75 characters? When I have asked Shopify, the say their URL's are an integral part of the "Ruby on Rails" system, so nothing can be done Or can it ??? I can't be the only Moz member with this issue can I ??
On-Page Optimization | | nick_HandCo0 -
Optimizing a URL/menu structure
Hi Mozzers, I'm working on Content Strategy at my job, and I'm close to making some recommendations on short/long-term direction. While I'm there, I want to tackle the URL/menu structure (correct term?), which is a bit of a mess as pages have been created without any consideration for it over time. For ease, let's just say we have 3 main subdirectories of the site (Section A-C), and let's also say that section A also has 3 important subdirectories. From a UX perspective at least, we want a page to look like: example.com/sectionA/subsectionAA/page1 but currently it's example.com/page1 We have dozens and dozens of these examples. To complicate matters a little further, Sections B and C have been earmarked to be consolidated into a new section (D), as they're currently confusing and overlapping, and create roadblocks in user journeys. So a page that is, say: example.com/sectionB/page2 may well want to be: example.com/sectionD/subsectionDA/page2 I'm comfortable enough with technically doing this, as I'm experienced enough in Drupal and have an agency on hand too, BUT - I don't know if there are any SEO pitfalls I need to be wary of when I'm doing this, beyond resubmitting sitemaps, and the trickle-down effects of redirects. Any advice, wise forum? thanks!
On-Page Optimization | | joberts0 -
Change of URL + SEO Impact
We recently changed the URLs from our site http://www.website.com (old)
On-Page Optimization | | ederdesign
https://website.com/us/en/ (new) Our ranking is plummeting every since and I wonder if the new URL had something to do with it. Do you know if that change, could have impacted the ranking?0 -
Should URL contain primary keyword or primary + extended keyword?
Hi All, This is a query regarding what keyword should be placed in URL. Below is the scenario. I have marketplace website where I can service providers with users. I have a page with a list of Dance providers and want to rank it for Dance Classes, Dance Coaching Classes keywords. Since these keywords represent same business purpose for us, should I keep the URL as www.abc.com/dance-classes or www.abc.com/dance-coaching-classes? What is SEO best practice in this scenario? Kindly suggest.
On-Page Optimization | | Avin1230 -
How do I create multiple page URLs that are optimized for location and keywords that may be overlapping or the same?
Hi guys, I am attempting to create unique URLs for several different pages on a website. Let's say hypothetically that this is a website for a chain of Ice Cream Shops in Missouri. Let's say they have 15 locations in Springfield, Missouri. I would ideally like to optimize our Ice Cream Shop's in Springfield, Missouri with the main keyword (ice cream) but also the geo-specific location (Springfield), but we obviously can't have duplicate URLs for these 15 locations. We also have several secondary keywords, think things like: frozen yogurt or waffle cone that we can also use, although it would most likely be more powerful if we use the primary keyword. Any suggestions for how to go about doing this most effectively? Thanks!
On-Page Optimization | | GreenStone0 -
"Heading 1" vs. "Title" Style for SEO
In Word, you can specify "Heading 1" text which Google presumably treats the same as an HTML tag. Is there any benefit in using the "Title" style? Is it the equivalent of a web page's title?
On-Page Optimization | | BlueLinkERP0 -
Articles URL
Hello, Currently, I am parsing article base on article ID on URL request. For example:
On-Page Optimization | | JohnHuynh
To go to the content of article **What is the visa on arrival? How to get it? **I am using URL like that http://www.vietnamvisacorp.com/news/what-is-the-visa-on-arrival--how-to-get-it--245.html and base on ID 245 to get this page content.
But, now I want to optimize this URL to http://www.vietnamvisacorp.com/news/what-is-the-visa-on-arrival--how-to-get-it.html. Then I got a problem: How to get an article without ID? Thanks,0 -
Moving our current homepage to a new URL
Our homepage currently speaks to a specific product and we're re-doing our homepage to be more about the brand which links to the product. The current home page has PA of 62 with thousands of links to the page. Question is are there any best practices around this or any risks? So current page is: www.xyz.com which we will be refreshing then moving the existing content to www.xyz.com/product so all the subdirectories gets shifted over 1 Thank in advance for the help!
On-Page Optimization | | JoeLin0