Comments on: SEO for Ruby on Rails http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/ It's Just Links Wed, 14 Sep 2011 13:47:04 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: Marc minelli http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-87288 Marc minelli Sun, 15 Jun 2008 14:30:12 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-87288 Thanks for the hint on redirect...i figured out how it is done with .htaccess though. Thanks for the hint on redirect…i figured out how it is done with .htaccess though.

]]>
By: KK http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-48292 KK Wed, 09 Jan 2008 15:03:58 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-48292 There must be something related with route.Any idea? There must be something related with route.Any idea?

]]>
By: KK http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-48206 KK Wed, 09 Jan 2008 04:26:36 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-48206 nice tips, is there any way to redirect page to index when user try to pass the non url ex:when i type www.domain.com/hello/ no metod in controller appears i just want to redirect instead of error nice tips, is there any way to redirect page to index when user try to pass the non url
ex:when i type http://www.domain.com/hello/
no metod in controller appears
i just want to redirect instead of error

]]>
By: Jimmy http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-35184 Jimmy Mon, 22 Oct 2007 03:22:49 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-35184 What kind of dog is in the picture? What kind of dog is in the picture?

]]>
By: ok http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-33508 ok Tue, 09 Oct 2007 09:28:54 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-33508 how do you create a simple link to a url, in the list view. e.g. a link to http://google.com. how do you create a simple link to a url, in the list view.
e.g. a link to http://google.com.

]]>
By: Jeremy HUbert http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-28664 Jeremy HUbert Fri, 07 Sep 2007 05:25:20 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-28664 Hey Tony. Great Tips. The 301 Redirect stuff really comes in handy. As for rendering the partial, you could always do this: (@request.user_agent.downcase =~ /googlebot/) ? 'bot' : 'notabot' %> Yay for one line ruby. :) Hey Tony. Great Tips. The 301 Redirect stuff really comes in handy.

As for rendering the partial, you could always do this:

(@request.user_agent.downcase =~ /googlebot/) ? ‘bot’ : ‘notabot’
%>

Yay for one line ruby. :)

]]>
By: SEO G http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-13311 SEO G Thu, 10 May 2007 16:32:12 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-13311 thanks for the tips Tony. I also like the code highlighting on this page, makes it quite easy to read. Are you using standard CSS or a code highlighting plugin for wordpress? Also, if you have any examples of how to do a match on a list of old URLs and then redirect them to the new structure that would be great. Perhaps something where one could load up the old URL paths in a database and for each entry tell it the new place to 301 redirect. For those who want to migrate an entire existing site over to a new clean url Rails site. @Obie: Thanks for the link and explanation of Rails routing, though I had to grab it from the Google cache today. thanks for the tips Tony. I also like the code highlighting on this page, makes it quite easy to read. Are you using standard CSS or a code highlighting plugin for wordpress?

Also, if you have any examples of how to do a match on a list of old URLs and then redirect them to the new structure that would be great. Perhaps something where one could load up the old URL paths in a database and for each entry tell it the new place to 301 redirect. For those who want to migrate an entire existing site over to a new clean url Rails site.

@Obie: Thanks for the link and explanation of Rails routing, though I had to grab it from the Google cache today.

]]>
By: rubycorner.net - resources for ruby and rails development http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-5127 rubycorner.net - resources for ruby and rails development Sun, 18 Mar 2007 19:28:02 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-5127 [...] SEO for Ruby on Rails - On this post you can find information on these topics: Search Engine Friendly URLs, 301 redirects, Boost Your Page Load Speed with Page Caching, Easy Cloaking. It deserves a read up. [...] [...] SEO for Ruby on Rails – On this post you can find information on these topics: Search Engine Friendly URLs, 301 redirects, Boost Your Page Load Speed with Page Caching, Easy Cloaking. It deserves a read up. [...]

]]>
By: tony http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-2571 tony Mon, 05 Feb 2007 14:31:40 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-2571 @topfunky - Yes that would be the proper way to do it. I was just demonstrating the code straight in the view for simplicity. @topfunky – Yes that would be the proper way to do it. I was just demonstrating the code straight in the view for simplicity.

]]>
By: topfunky http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/comment-page-1/#comment-2541 topfunky Mon, 05 Feb 2007 01:40:42 +0000 http://www.tonyspencer.com/2007/01/26/seo-for-ruby-on-rails/#comment-2541 A better solution to user agent cloaking might be to write a helper that returns a boolean based on the user agent. A custom helper like bot_visitor? could check for google, msn, etc. and consolidate more thorough logic without putting it in the view. A better solution to user agent cloaking might be to write a helper that returns a boolean based on the user agent.

A custom helper like bot_visitor? could check for google, msn, etc. and consolidate more thorough logic without putting it in the view.

]]>