Make sure that there are no trailing slash