I think this should be fairly easy but I\'m not familiar with how it\'s done...
How do you write a before filter that would check if the current request is for certa
ActionController::Redirecting#redirect_to allows you to pass an absolute URL, so the easiest thing to do would be to pass it one with something like:
redirect_to request.url.sub('blog', 'www')