Fix issue with url rewrites.