How to rewrite image/<text>-<imageID>-<text> to image/ID.jpg ???

Posted by SilverRuby on Stack Overflow See other posts from Stack Overflow or by SilverRuby
Published on 2010-04-20T11:39:11Z Indexed on 2010/04/20 11:43 UTC
Read the original article Hit count: 196

HI, I used to have PHP websites and using url rewriting on picture to have SEO friendly urls, On php I had links like /image/blablablabla-1234-blablabla rewriting to: /image/1234.jpg by using a url rewrite rule on apache .htaccess file.

Now I totally switched to ruby on rails and I would like to know what is the best way to do that on RoR? I am hosting websites on apache with passenger.

Thanks in advance

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rewriterule