Hey everyone! I'm new to managing self-hosted sites, and I need some help. We're switching our helpdesk system from a self-hosted solution to a cloud-hosted one. To make things easier for our users, I want to redirect our current helpdesk URL (helpdesk.ourdomain.com) to the new cloud provider URL (ourdomain.cloudprovider.com). I initially tried to set this up through DNS, but I ended up with SSL errors, which clearly didn't work. Can anyone suggest the best way to handle this redirect? Any guides or advice would be much appreciated!
3 Answers
It depends on what web server you were using, but any recent web server should allow you to set up a 301 redirect to your new URL. If you're completely locked out of server controls because of that built-in web server, you might need to set up a simple HTML page to do the redirect instead. Check out this guide on how to do a redirect in HTML: https://www.geeksforgeeks.org/html/how-to-redirect-a-page-to-another-page-in-html/
Just a heads up, DNS alone can't handle redirects—it's really just a lookup service. To make the redirect from helpdesk.ourdomain.com to ourdomain.cloudprovider.com work, you might want to use an HTML meta-refresh tag. Or, if you have access to your server settings, you could implement an HTTP redirect. For example, with Apache, you’d use something like:
RewriteEngine on
RewriteRule ^/(.*)$ https://ourdomain.cloudprovider.com/$1 [R=302,L]
You could really simplify things with a basic HTML redirect if you can’t access server settings. It’s straightforward and should work just fine.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures