add rewrite requests to entry file for php project