Rewrite http part in php