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
-
Changing url (permalink) structure of website??
Currently I'm working on SEO of one website www.mocomi.com. I want to change url (permalink) structure of entire website which has more than 5000 pages. Currently website have structure of http://mocomi.com/tenali-raman-the-kings-condition/ Which I want to change it to http://mocomi.com/fun/stories/tenali-raman/tenali-raman-the-kings-condition/ Likewise I want to change entire website permalink url structure to make site architecture more SEO friendly. Which means I'am going to add only categories & subcategories before actual link. Kindly guide with following questions which I need to move forward with this step. How much is it worth to change URL structure? Checklist or factors I need to consider while making this decision? Is it a good practice to change URL's of entire website at once or Should I change it in Parts? How much time it takes google to rank those urls again? Which are the best practices to do so?
On-Page Optimization | | Mocomi1 -
Rel=canonical vs noindex/follow - tabs with individual URLs
Hi everyone I've got a situation that I haven't seen in quite this way before. I would like some advice on whether I should be rel=canonicalzing of noindexing/following a range of pages on a clients website. I've just started working on a website that creates individual URLs for tabs within each page which has resulted in several URLs being created for each listing: Example URLs: hotel-downtown-calgary hotel-downtown-calgary/gallery?tab hotel-downtown-calgary?tab hotel-downtown-calgary/map?tab hotel-downtown-calgary/facilities?tab hotel-downtown-calgary/reviews?tab hotel-downtown-calgary/in-the-area?tab Google has indexed over 1500 pages with the "?tab" parameter (there are 4380 page indexed for the site in total), and also seems to be indexing some of these pages without the "?tab" parameter i.e. ("hotel-downtown-calgary/reviews" instead of "hotel-downtown-calgary/reviews?tab") so the amount of potential duplication could be more. These tabbed pages are getting minimal traffic from organic search, so I've got no issues with taking them out of the index - the question is how. There are the issues I see: Each tab has the same title as the other tabs for each location, so lots of title duplication. Each individual tab doesn't have much content (although the content each tab has is unique). I would usually expect the tabs to be distinguished by the parameters only, not have unique URLs - if that was the case we wouldn't have a duplication issue. So the question is: rel=canonical or noindex/follow? I can see benefits of both. Looking forward to your thoughts!
On-Page Optimization | | Digitator0 -
Wordpress sitemap url problem causing WMT errors
The following types of links are appearing in my webmaster tools crawl errors report under 'other'. I've noticed they are in my sitemaps ( I run wordpress and use a plugin called Google XML sitemaps). How do I get rid of this error? http://www.musicliveuk.com/bands/postname%/
On-Page Optimization | | SamCUK0 -
Duplicate URL for homepage
Hi Gurus, Thank you for reading this question My site is developed in Classic ASP How can i make sure the homepage is not duplicated for http://www.partyrama.co.uk/ http://www.partyrama.co.uk/default.asp http://partyrama.co.uk/ http://partyrama.co.uk/default.asp Regards Sri
On-Page Optimization | | partyrama0 -
Changing url in connection with meta title inconsistency
We run a site, which is a directory type one, where visitors can look for local businesses per city as well (at some point similar to the 'Yelp concept'). Now, we use www.example.com as the homepage, and the www.example.com/city1, where city1 is the capital of our country, is 301 redirected to the homepage, so this is your default setting. When you choose e.g city2, your url changes to www.example.com/city2, and the city value is stored in a cookie. Then, when you leave the session, and return to the site later on, you will see the homepage url, but with your previous choice of city (in case you let cookies be stored). My concern is, that the meta title always contains the chosen city name, so when you return to the website, and you previously used city2, you will now see the homepage url (which normally belongs to city1), but with the meta title of city2 or with any other previously chosen city. Does this mean a problem, and should I always use the correct url, which would be www.example.com/cityX, or this could not cause a problem for me? If it does, would you mind sharing me the exact problems as well? Thanks,
On-Page Optimization | | Dilbak0 -
URL best practices, use folders or not ?
Hi I have a question about URLs. Client have all URL written after domain and have only one / slash in all URLs. Is this best practice or i need to use categories,folders? Thanks
On-Page Optimization | | 77Agency0 -
Best URL Structure For Products That Are The Same
I know that the url structure is very important for seo preferably using the keyword. But is it okay to have the same url with the product number at the end ? Each of our products have a name with a product number. Or will this cause to many similar urls? or if the folder is the name of the product that needs to be optimized, can the page just be called the product number? Example: Say you have a 20 different product lines and they are all catagorized in the appropriate folders, and need to be optimized for the actual product name. XXX (folder name ) WWW-PR-123 WWW-PR-1234 WWW-PR-12345 WWW-PR-123456 what would be the best url structure? Can they have the same begining? The product name? something like: www.example.com/xxx/www-pr-123.php www.example.com/xxx/www-pr-1234.php or www.example.com/xxx/pr-123.php www.example.com/xxx/pr-1234.php
On-Page Optimization | | hfranz0 -
URL length does it really make a difference
I am currently working redevloping my site, I have terribly long URL's according to SEOMoz, can someone cover the real benefit of my editing my URLs, and then putting in all of those redirects. Should I edit old material? My site has been in wordpressformat for a couple of years now.
On-Page Optimization | | copykatrecipes0