You *may* not want to do this, personally I found it problematic for some things (anchors on the same page for example) and I found it was fairly easy just to switch use absolute URLs. Up to you though