Redirect all users who click on domain.com/signup to a different page

If I was to make this a plugin could I do something like this, and not even need the javascript just with the plugin.rb?

# name: signup
# about: /signup plugin for Discourse
# version: 0.1
# authors: nadermx


after_initialize do
  Discourse::Application.routes.prepend do
    get 'signup' => '//newdomain.com'
  end
end