RewriteRule.php Interfaces, Classes and Traits RewriteRule A route is a class that rewrites a URL path (route) that matches a route or pattern (old_route) into a new route that the system can use (new_route) to handle the current request.