No. A lot of people tend to (whether this is good practice or not, I have no idea) set a global variable as the document root (e.g.
www.websitename.com/applicationname/) then use relative URLs within the application itself. That way all one has to do when moving the application around is redefine the global document root variable.