Change rebuild hook url to /rebuild instead of /.