Reputation: 10552
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 www.website-a.com/website-b. So could I set the BASE href as '/website-b/'?
Thanks
Upvotes: 5
Views: 2189
Reputation: 5136
Not possible according to W3C specs:
href = uri [CT]
This attribute specifies an absolute URI that acts as the base URI for resolving relative URIs.
Upvotes: 4
Reputation: 129403
No, base URL can not be relative. The closest reference I found was RFC 1808: http://www.freesoft.org/CIE/RFC/1808/13.htm and W3C
Upvotes: 6