Add shoe conditions and rewrite the route rules.