[typo] Using Redirects

facedown@mac.com facedown at mac.com
Thu Dec 15 13:24:00 EST 2005


I setup a new blog yesterday on r801. I am trying to use the  
redirects table to fix my old links, but can't get it working. I have  
the following setup in the database (entered manually, I didn't see  
any interface for this):

id: 1
from_path: 30/cradle-or-convert
to_path: /articles/2005/11/27/cradle-or-convert

(I've tried other combinations of leading/trailing slashes, but have  
left it as above for the time being, as per the example at http:// 
scottstuff.net/blog/articles/2005/11/17/a-little-help-for-migrating- 
to-typo)

The production.log shows the following when I try to browse to http:// 
emergentpdx.com/30/cradle-or-convert/

Processing RedirectController#redirect (for 71.56.132.130 at  
2005-12-15 13:17:33) [GET]
   Parameters: {"from"=>["30", "cradle-or-convert"],  
"action"=>"redirect", "controller"=>"redirect"}
Completed in 0.00470 (212 reqs/sec) | Rendering: 0.00005 (1%) | DB:  
0.00164 (34%) | 404 [http://emergentpdx.com/30/cradle-or-convert/]

Looks to me like routes.rb recognizes the funny request and wants to  
redirect it, but something's getting confused. Instead, it gives me a  
404.

Thanks,
Kevin


More information about the Typo-list mailing list