Fix relative url rewrite with same parent directory.