"How to construct relative url, given two absolute urls in Python","os.path.relpath('/images.html', os.path.dirname('/faq/index.html'))"