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
-
SEO results/title tags/desktop vs. mobile
I am trying to figure out why my title tags comes up different between desktop and mobile search results. Desktop returns my title tag as written, but on mobile I get something completely different. It's related to the site, but not anything I can read, as coded in the site (i.e. not the title tags, meta, or anywhere else). Has anyone else experienced this? My title tag is 64 characters - I know it's a little bit over, but would that cause such a weird issue as a completely different title in the search results?
On-Page Optimization | | tallyhodesign0 -
Is it OK to 301 redirect 1000s of duplicate random URLs to homepag?
Hello, We found a critical error in our site internal link structure and the way Google indexes it. Website has 1000s of URLs that are basically 50% match to homepage. They all start the same example.com/category/random/random I can do a redirect match and 301 them to homepage. This way 1000s of bogus url are not indexed and no value given. Is it OK to redirect so many URLs to homepage? Platform is creating these URLs because of search query, where it adds all site content to one page. Currently this search page /category / has own canonical and all those duplicate content URLs have canonical to that /category /. To fix my plan is to a. Remove canonical from /category / that way all those duplicate URLs don't have it either. B. Redirect match all URLs that have /category / in them to homepage. (this is most important page where 50% of that content is and should be the main page). Is this plan ok?
On-Page Optimization | | advertisingcloud1 -
URL Structure Category Pages -Current Moz Friday-
Hello,
On-Page Optimization | | _Heiko_
regarding #15 of the last moz friday I have a question: http://moz.com/blog/15-seo-best-practices-for-structuring-urls What would you prefer if the lenght of the URL will be still under 60 characters and you have an example like this: Let's call it a specific page in a category. As I like the old shoe examples: You have a page about red shoes in your shoe category. Which URL would you prefer: a) www.mydomain.com/shoes/red-shoe b) www.mydomain.com/shoes/red Personally I would prefer a) or would you already consider this as spammy? My real example is not that trivial like the shoe example and the categories will be in plural and the specific pages always in singular (like in the example shoes vs shoe). c) would be to put it independently from the side structure on www.mydomain.com/red-shoe - but personally I have the experience that a) or b) will help the rankings of the category page if you have the specific pages in the same subfolder. What's your opinion on this?1 -
Is tracking code added to the end of a URL considered duplicate content
I have two URLs one with a tracking coded and one without. http://www.towermarketing.net/lets-talk-ux-baby and http://www.towermarketing.net/lets-talk-ux-baby/**#.U6ghgLEz64I ** My question is will this be considered as two separate URLs, will Google consider this as two pages with duplicate content. Any recommendations would be much appreciated.
On-Page Optimization | | TowerMarketing0 -
Does a URL forward slash break up an exact match phrase?
I've seen some organisations implementing keyword phrases per URL with forward slashes in-between the keywords. Would this still work for broad AND exact match keywords when the search engine references the URL? Here's an example with the keyword being "scuola di lingue tedesco". http://www.esl.ch/it/adulti/scuola-di-lingue/tedesco/index.htm Thanks in advance.
On-Page Optimization | | featherseo0 -
URL parameters
Hello, Currently, I paginated a content to 5 pages eg: http://abc.com/faqs.html?&page=2 Is it right? and how to check it is correct or not?
On-Page Optimization | | JohnHuynh0 -
Should ".html" in the URL or not?
Does URL like /wedding-dresses.html/f/price/2,100 with "html" in the middle do harm to SEO? Should I drop the ".html"?
On-Page Optimization | | StevenRoland0 -
URL STRUCTURE & RE-WRITING
1.) I need a suggestion from you, please help. How should be the Directory/URL structure if I am offering servicves in many cities of UK/US. /<service>/
On-Page Optimization | | younus
/<service>/<state>/
/<service>/<state>/<city>/ OR /<service>/
/<state>/<service>/
/<state>/<city>/<service>/ Thanks for your time.</service></city></state></service></state></service></city></state></service></state></service></service> What exactly mean by 'URL enforce writer' to rewrite the URL.0