How to implement "short" nested vanity urls in rails?
Posted
by UnSandpiper
on Stack Overflow
See other posts from Stack Overflow
or by UnSandpiper
Published on 2010-04-04T18:37:56Z
Indexed on
2010/04/04
18:43 UTC
Read the original article
Hit count: 169
I understand how to create a vanity URL in Rails in order to translate
http://mysite.com/forum/1
into http://mysite.com/some-forum-name
But I'd like to take it a step further and get the following working (if it is possible at all):
Instead of:
http://mysite.com/forum/1/board/99/thread/321
I'd like in the first step to get to something like this: http://mysite.com/1/99/321
and ultimately have it like http://mysite.com/some-forum-name/some-board-name/this-is-the-thread-subject
.
Is this possible?
© Stack Overflow or respective owner