Is it possible to forward old server URLs links to the new Cloud workspaces URLs?
Example: (not actual links)
I have an email from an old JIRA ticket (server/on-prem instance) with a link... https://jira.mine.com/browse/ITTU-3902
I would like to click on the link and be forwarded to my new cloud instance... https://mine.atlassian.net/browse/ITTU-3902
I tried changing the hosts file, but the that seems to redirect me to an Atlassian error page stating that the Atlassian cloud is down.
As this is for only 2 people... I do not want to make this a change on the corporate DNS, which is why I am working with the hosts file.
Anyway to get around the Atlassian error page?
Thanks,
Mike
You can use a rewrite rule for Apache or Nginx, but you should also create an A record for your old jira server to keep it active on another hostname.
You can also do this with a simple python web server, but you'll need to manage ports as well.
This example runs on port 80 and redirects requests to the new_host:
from http.server import BaseHTTPRequestHandler, HTTPServer
import urllib
class RedirectHandler(BaseHTTPRequestHandler):
def do_GET(self):
# Destination URL to which the traffic should be redirected
new_host = 'https://mine.atlassian.net'
# Construct the full URL to redirect to by appending the original path and query
self.send_response(301) # Sending HTTP Status Code 301: Moved Permanently
new_path = new_host + self.path
self.send_header('Location', new_path)
self.end_headers()
def run(server_class=HTTPServer, handler_class=RedirectHandler, port=80):
server_address = ('', port) # Listen on all network interfaces
httpd = server_class(server_address, handler_class)
print(f'Starting httpd server on port {port}...')
httpd.serve_forever()
if __name__ == "__main__":
run(port=80) # Specify the port on which you want to run the server
Hi Mike,
Maybe you can help this Atlassian KB article - After a successful server to cloud migration URL links are broken in the new cloud instance
Pavel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.