change rewrite to everything except php