There is the vapor extension that might do what you want, and I'm pretty sure works in Radiant 0.9.1, not so sure on the new 1.0 versions.

https://github.com/saturnflyer/radiant-vapor-extension

Jason

On 02/20/2012 12:42 PM, Chris Perkins wrote:
I'm redoing an existing website, and there is one thing I can't figure out how to do. I want to redirect some funky URLs that that the old website uses to the new, simpler ones that radiant uses.

In a vanilla Rails app, I would add a before_filter in my ApplicationController, something like this;

class ApplicationController < ActionController::Base
  before_filter :redirect_old_urls
  def redirect_old_urls
    if is_funky(request.fullpath)
      redirect get_new_url(require.fullpath)
    end
  end
end

Something like that, anyway.

But my radiant app doesn't have an application_controller.rb, so I don't know where to put this. Any suggestions?

- Chris


Reply via email to