Fix for regex causing 404 on some pages on nginx.