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

**URL:** <https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532>\
**Category:** Development\
**Created:** [2월 14, 2018, 12:14오후 UTC](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532 "2018-02-14T12:14:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![nadermx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nadermx/32/67585_2.png) [@nadermx](https://meta.discourse.org/u/nadermx)\
**Post date:** [2월 14, 2018, 7:16오후 UTC](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532/6 "2018-02-14T19:16:29Z")

</div>

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

```

---

_[View the full topic](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532)._
