SEO Friendly URLs where the phrase used may change in Rails
Posted
by Newy
on Stack Overflow
See other posts from Stack Overflow
or by Newy
Published on 2010-05-22T05:27:32Z
Indexed on
2010/05/22
5:30 UTC
Read the original article
Hit count: 183
ruby-on-rails
Say I have http://www.mysite.com/I-Like-Cheeseburgers and I want that to point to Item with id 3. Sometime later, I change the name of the item, and now its http://www.mysite.com/I-Like-Hamburgers (and perhaps many more times). I want all these URLs to remain pointing to Item 3. Is it efficient to simply keep a table of [strings,item_ids] and do a lookup on this? Is there a better way?
© Stack Overflow or respective owner