handle relative path for index.html and robots.txt