On 29 Jul 2005, at 20:52, Jonas M Luster wrote: > > Something I did before I simply killed four years of WP/Drupal/MT > imports, was to add a Rewrite for /archives/.../(slug-name) and > hand it to search?q=$1 (slug-name). A mini-mod to the search code, > to strip "-" and anyone hitting a non-existing permalink from my > old site would be getting a search for the title, which worked > quite well. Idea?
Good idea, never thought to push it through search. As there could feasibly be a lot of different URL formats that migrators will want to have handled, is it possible (bearing in mind that my total experience of Rails is still just about measured in hours rather than days) to have a catch-all entry in routes that throws anything it hasn't matched to search? So something along the lines of: map.connect 'whats left', :controller => 'live', :action => 'search', :page => nil, :requirements => { ?? } Which, right now, I would have no clue how to make work. I could also very well be talking rubbish, but is something like this workable? You wouldn't have to worry about rewrites in htaccess for whatever old format of URL you had then. Wouldn't be as nice as an exact match either, but at least there are no routing errors. On 29 Jul 2005, at 21:45, Tobias Luetke wrote: > I think it would be great if we could update the importer to "create" > .htaccess files and lighttpd snippets which would do the redirecting. > I'll look into this in the near future That would certainly encourage migrators. Gary ------ www.gpshewan.com From imobachgs at step.es Sat Jul 30 08:41:55 2005 From: imobachgs at step.es (Imobach =?iso-8859-1?q?Gonz=E1lez_Sosa?=) Date: Sat Jul 30 08:36:28 2005 Subject: [typo] Chaging pubDate format In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> El S?bado 30 Julio 2005 03:37, Tobias Luetke escribi?: > Why did you change the format? Is typo's not correct? > If you are in production mode you need to restart the dispatch.fcgi > files for changes to take hold. Erhm, fool of me... I forgot restart webrick. Sorry. First of all, Typo seems to work fine. But I'm trying to syndicate a pair of Typo's blogs into a Drupal site. Drupal uses strtotime php function to parse the date, which claims to interpret GNU Date input formats[1]. According to Ruby, my timezone is WEST but it doesn't appears in [1]. So, PHP doesn't understand this string: "Sat, 30 Jul 2005 13:39:33 WEST". So, i'm just tweaking the dates format. Anyway, now that it worked, I'll try to find out how to solve the problem without messing with Typo code ;) Thank you for your reply. [1] http://www.gnu.org/software/tar/manual/html_chapter/tar_7.html -- Imobach Gonz?lez Sosa e-mail: imobachgs en banot.net jabber: osoh en jabberes.org url: http://www.banot.net/~osoh/ blog: http://devnull.blogs.banot.net/ -- Este mensaje ha sido analizado por STEP On Line en busca de virus y otros contenidos peligrosos, y se considera que est? limpio. 902 10 18 43