Client side URL rewriting, need to be moved server side imo