search engine friendly urls & ruby on rails
Remember when URL rewriting was as a major part of search engine optimization? Nowadays the big G and others have upgraded their bots; they can now crawl and index dynamically generated URLs without issues. Still the days of mod_rewrites and other query string URL rewrites exist on most database driven sites. Why should we have to spend extra time on something that makes no difference to the look of the site, or the functionality of the site?
Rails definitely was thinking about this when they created their amazing URL writing concept. An web application written in Ruby on Rails has URLs that can actually be read by a human. They are made to be read by humans, not a server. Rails calls their URLs "Pretty URLs", and I agree fully in that description. They are pretty. Rails handles this process with routes. Routes are defined in config/routes.rb. Rails supports native Ruby Rewriting, I will be discussing Routes in the near future. Thanks for reading, and if you have any questions, just comment here.
Continue Reading…Posted by Wayne on May 15, 2008