Topic: Redirecting wildcard routes
I have a simple problem which turned out not to be so simple
Consider the following route:
match "*id", :to => "pages#show"
Now this route works:
Only problem is that this route will also work:
What I'd like to do is somehow 302 redirect that puppy so it always points to the wildcard route. I'd like to do this without futzing with my server conf if possible, but so far it seems like the only way.
Any suggestions on how I can accomplish this within Rails?