jfoley
By:
jfoley

redirect trying to redirect motorolacable.com/mentor --> motorolamentor.zendesk.com

December 31, 2015 1.4k views
Nginx

hello, I am trying to redirect motorolacable.com/mentor --> motorolamentor.zendesk.com, can this be done in DO or do I need to use nginx?
never done a redirect before as our webguy is on vaca.. thank you

2 comments
  • You can do it in nginx, but - for a less technically demanding solution you can also modify the index.html file in the mentor directory to look something like this:

    <!DOCTYPE html>
    <html>
    <head>
      <script type="text/javascript">
        window.location.replace("https://motorolamentor.zendesk.com/");
      </script>
    </head>
    <body>
    </body>
    </html>
    

    Happy new year

  • or simply add a CNAME record in DNS :)

1 Answer

This question was answered by @primdahl:

You can do it in nginx, but - for a less technically demanding solution you can also modify the index.html file in the mentor directory to look something like this:

<!DOCTYPE html>
<html>
<head>
 <script type="text/javascript">
   window.location.replace("https://motorolamentor.zendesk.com/");
 </script>
</head>
<body>
</body>
</html>

Happy new year

View the original comment

Have another answer? Share your knowledge.