router, how to translate old url
- filsedla
- Member | 101
Hello, I think this cannot be solved using routes alone.
The solution is to create the route just for index.php
:
and add a new presenter for decoding the query parameters and performing redirects to the new URLs. Example:
PS: After you know it is working well, you can change the redirect code to
IResponse::S301_MOVED_PERMANENTLY
.