Rewrite for slimphp