If base_url ends with a slash the rewrite rule will include two slashes. We should be careful.