Redirect Subdomains

 

We can redirect a subdomain to a different website.

Pre-requisites

  • You need access to realgeeks-redirects.herokuapp.com, Send to Sky or Ben N.
  • Client domain must be on AWS.

Example: The clients domain is bobsrealestate.com. He wants bob.bobsrealestate.com to redirect to some other non-Real Geeks site, say bobs-wp-site.com

On our DNS:

Create a CNAME for the desired subdomain name to..

For example, creating a CNAME for bob.bobsrealestate.com that points to realgeeks-redirects.herokuapp.com

On the redirect tool

  • Log on to https://realgeeks-redirects-ssl.herokuapp.com/admin/
  • Click 'Sites'
  • Add the URL of the subdomain, bob.bobsrealestate.com in this example.
  • Click 'Save'
  • Click 'Redirects'
  • Build the redirect. In our example, we are sending all traffic from bob.bobsrealestate.com to bobs-wp-site.com. So the 'From url' is .*, 'To url' is http://bobs-wp-site.com, and from the site dropdown, select the bob.bobsrealestate.com site you made in the first couple steps.

On Heroku

  • Log on to https://www.heroku.com/
  • Select 'realgeeks-redirects' from the list of 'Personal Apps'
  • Select 'Settings'
  • Scroll down and under 'Domains and certificates', click the 'Add domain' button
  • Enter the domain to redirect, bob.bobsrealestate.com in our example. The DNS target will show something like <subdomain>.herokudns.com, bobs.bobsrealestate.com.herokudns.com in our example.

Testing

  • You should be able to go to bob.bobsrealestate.com and pull up http://bobs-wp-site.com