We are all familiar with relative paths: A relative path to ./images/hello.jpg from http://www.domain.com/hey links to http://www.domain.com/
./images/hello.jpg
http://www.domain.com/hey
http://www.domain.com/
Simply you can write in href attribute:
/:port/[path/]file.ext