More work on rewrite, might not support Laravel now, see README.