Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Forwarding from old server workspace URL to cloud workspace

Mike Bell
Contributor
April 9, 2024

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

2 answers

0 votes
_A9_ William Kennedy
Contributor
April 10, 2024

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

 

0 votes
Pavel Junek
Community Champion
April 10, 2024

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events