Tell me more ×  Is it possible to set a base url on a page with
a relative value?  For example, I have two websites (website A
and website B). For Website B it will be located at So could I
set the BASE href as '/website-b/'?   share|improve this
question I think it takes less than 5 minutes to try it
yourself... –  KennyTM Mar 28 '10 at 14:07 ... and less than one
minute to google the answer. –  jholster Mar 28 '10 at 14:14
@KennyTM: Indeed, as long as you test it in more than one
browser ;-) Although it's hardly worth mentioning (and I do so
only as a response to your comment), IE8 in compat mode and IE7
or lower (incorrectly) support a relative URL for the base
element. –  Andy E Mar 28 '10 at 14:19 IE9 and IE8 (Compat Mode
or not) don't support a relative base. Test page: –  EricLaw Jul
1 '11 at 16:39 add comment  2 Answers  up vote 6 down vote
accepted  No, base URL can not be relative. The closest
reference I found was RFC 1808: and W3C  share|improve this
answer Okay thanks, I guess I could use a bit o