Absolute vs Relative URLs
-
What are the pros and cons of these two types of URLs and what type of weight does this hold. It doesn't seem to be a big issue in regards to ranking.
Any qualified clarity would help.
-
I use a mix of both relative and absoloute, for navigation I tend to use relative links in case i ever move things around. However for content in particular articles or news pieces on a site i use exact links. I have found before that some of these have been used on other sites so including the exact link ensures that there is a link back to the website.
-
If your links are absolute and another site scrapes your content, those links are often embedded when they republish it. If you use relative links, those embedded links would not work and you wouldn't get credit for them.
Here is a relevant quote from Rob Ousbey from an SEOMoz post:
"I'd recommend absolute links in post/page/feed content in particular (so that any scraped content maintains the links back to you). For 'navigational' links, there's a variety of reasons why absolute links are still useful, such as making sure link juice flows to the canonical domain (eg: if you have a number of (sub/)domains that resolve to the same content)."
-
For SEO it doesn't matter at all. As long as your link points to a valid page or resource, the crawler bots will suss out the full URL.
I personally use relative links wherever possible. They keep the file size smaller, and they're more versatile if you restructure or move domains.
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
-
How can I redirect anything after the article url to main article?
Hello everyone, When someone visits my websites article like http://www.website.com/article-title/lol , it give to 404 page error. But when someone http://www.website.com/article-title/ , it shows the article. The word "lol" can be changed to anything. I would like that to be redirected to the main article. Example: Someone visits website.com/article-title/lol, they should be redirected to website.com/article-title/ Is it possible to do so? If yes, please tell me how. Note: I'm using WordPress Thank you
On-Page Optimization | | hakhan2011 -
Ecommerce URLs with numbers
Hi everybody! I have to optimize an ecommerce where somebody has previously done the SEO optimization, although the URLs have numbers before the product's name They have told me that these numbers are useful to find the products, so I think it shouldn't be really bad if I don't redirect them to "clear" ones. For example: /colesterol-sobrepeso/2217-hc-grass-capsulas-duras-15-capsulas.html > /colesterol-sobrepeso/hc-grass-capsulas-duras-15-capsulas.html Am I right? After all, they contain the keywords and the subfolders are also ok. Or it would be better if I redirect the whole site? Thanks!
On-Page Optimization | | Estherpuntu0 -
Microsoft SEO Toolkit vs MoZ
Hi MoZ Community, Does anybody know how well is Microsoft SEO Toolkit. As far i have noticed this tool reports around 20 violations under three broad areas like : SEO, Content and Performance. On many violations I have found MoZ to be silent like : 1-unnecessary redirects 2-Invalid mark ups 3-Missing Tag 4-like vilations and others Important is that it tells solutions as well against each violation on how to fix that. Any body can give insights while comparing it with MoZ. Tanveer
On-Page Optimization | | Sequelmed0 -
301 Redirects From a URL without Keyphrases to one With Keyphrases
I have a client that sells services. Each service offered currently has a URL structure like this: www.companyname.com/product/asp$view-id-page3022-item-24 These pages are pretty old, and I would love to have a more user-friendly URL like this: www.companyname.com/product/purple-swatch-watch If I rename the URL and do a 301 redirect, what impact will that have on search? Ideally, this page will be optimized for "purple swatch watch", but the current URL structure is so... well, you know. My apologies if this has been answered before. I tried looking through archived of 301 issues, but lost hope after my first 10 or so attempts at answered didn't help this specific issue.
On-Page Optimization | | ericav0 -
Guest vs Logged In Content
Hi Mozzers I have a client that recently launched a q&a and he has the answers hidden by registering for free you can see the answers. It's a free community. Now the question comes: Google will not get the entire page only the question content which I think is bad. What option would solve the issue. Have thought about making the answers hidden through css... so if you're a guest the answers are display:none . But it has to be a better option than dirty things like this 🙂
On-Page Optimization | | mosaicpro0 -
Does it matter if your URL ends in .net or .com?
Someone told me that having a URL that ends in .net (instead of .com) will hurt my site's SEO. Is that true?
On-Page Optimization | | matt-145670 -
URL with two forward slashes //
We have a potential client with a URL structure in this fashion: http://www.site-url.com//cpage/page.html pretty strange, right? my question is: How bad are the 2 forward slashes // for SEO? How bad is it to have that extra layer of /cpage in the URL? this doesn't appear to serve any other purpose than making the URL longer than necessary.
On-Page Optimization | | Motava0