Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If you create relative links in Blogger, it tends to automatically convert them into absolute links or to add http:// in front of the URL.

Is there any way to prevent this?

Update: I have reported this to the Blogger forum as an issue. Let's hope Google will fix it.

share|improve this question
Maybe webapps.stackexchange.com would know? – Chloe Jan 10 '14 at 1:03
Not sure if this is still working, but have a look at: Templates - Making relative links work. – dan Jan 10 '14 at 3:03
Just out of curiosity... why do you want the links to stay relative? – Osvaldo Jan 10 '14 at 16:09
Because sometimes, you need to move posts around (import/export them). Or, a blog's url may change. This has an impact on link juice and page rank. There is a <base> tag to solve this, but Blogger breaks it... which forces one to implement redirects, which is more complicated than necessary. – JVerstry Jan 10 '14 at 18:53
Have you tried an explicit relative url (./rest/of/url.html)? The post you link to only has the implicit relative url (rest/of/url.html). Or do they process the ./ out as well? – Nick Jan 13 '14 at 18:55

From your bug report to Google, another user nitecruzr posts this helpful advice:

The only way to avoid this problem is to not switch between "Compose" and "Edit HTML" modes, in Post Editor. Or plan your post development - and add relative links as the last step before publishing.


We reported this, 4 years ago. Blogger Engineering prefers alternate solutions, apparently.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.