Dec 31, 2024
Personally, I think this is inefficient. Start copying and pasting only makes it hard to maintain because you need to update the same logic once after another if any changes are required.
Why not using Nginx or Apache URL to handle friendly URLs and then use an appropriate security mechanism that works with Route definitions instead?