I love how much ugly code AR saves me, but I would love to also map some redirects with it.
For example, if I want to support /user/maddog, /u/maddog and /users/maddog, I'd have to write a lot of code to do clean 301 redirects (for SEO reasons, there should be one main URL for everything).
AR could support that in a second, but to do it in a nice way across the entire application for a lot of different things, I'd have to write something from scratch.
What do you think? Is there a way to extend the GET attribute and do it myself easily?
I love how much ugly code AR saves me, but I would love to also map some redirects with it.
For example, if I want to support
/user/maddog
,/u/maddog
and/users/maddog
, I'd have to write a lot of code to do clean 301 redirects (for SEO reasons, there should be one main URL for everything).AR could support that in a second, but to do it in a nice way across the entire application for a lot of different things, I'd have to write something from scratch.
What do you think? Is there a way to extend the GET attribute and do it myself easily?
Thanks