Routing means different things to different people.
I'm guessing your describing transforming a link from one form to another, as in a normal redirect request.
If this is correct, then routing is always best done at the Apache level, with rewrite rules... because... it's less over head, as there's no PHP involvement. Handling redirects at the PHP level is far more resource intensive than at the Apache level.
Maybe provide an example of what exactly you mean by routing + people can provide better comments.
Note: If you are talking about redirects, always be sure to use 302 redirects, rather than 301 redirects, because 301 redirects cache in all browsers forever, so if you make a typo or like to change your entire site layout sometime in the future, using 301s will make this complex or impossible... depending on your site rework...
I'm guessing your describing transforming a link from one form to another, as in a normal redirect request.
If this is correct, then routing is always best done at the Apache level, with rewrite rules... because... it's less over head, as there's no PHP involvement. Handling redirects at the PHP level is far more resource intensive than at the Apache level.
Maybe provide an example of what exactly you mean by routing + people can provide better comments.
Note: If you are talking about redirects, always be sure to use 302 redirects, rather than 301 redirects, because 301 redirects cache in all browsers forever, so if you make a typo or like to change your entire site layout sometime in the future, using 301s will make this complex or impossible... depending on your site rework...