Highlighted
Honored Contributor.
Honored Contributor.
276 views

URL redirection

Hi Experts,

We are planning for an Server Migration. 

So we have done the HP Service Manager 9.40 Setup in different server.

If User hits an old URL, then it should redirect to the new URL. How we can achieve that?

In index .html, i have done the changes. 

If I hit this,  http://XXXX:8080/webtier-9.40/ it is getting redirected. But SM users will hit this complete URL http://XXXX:8080/webtier-9.40/index.do . which is not getting redirected to new URL. Is there any other place where i need to do changes?

Other doubts: 

In case if OLD SM Server is not alive, then how to redirect the URL? is there a way to do it in sm.ini or sm.cfg files? or is there a way to give an ALIAS in TOMCAT in new Server (if they hit any old/new it should redirect to new one)

 

 

 

0 Likes
3 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: URL redirection

Do you have an Apache HTTPD webserver fronting Tomcat? It's a lot easier to redirect using the webserver.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: URL redirection

No. we are not using.

Regards,

Shalini R

0 Likes
Highlighted
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: URL redirection

You should be using a name instead of the IP. Tomcat 7 (which I think you are using since it's the only supported on this version) does not have rewrite capabilities (tomcat 8 has);
A workaround would need to un-deploy SM from this context and configure a java rewriter on it.. you can find some how-to on internet about it but I strongly advise you to stop to use the IP, so you avoid such problems like this.
You could also test un-deploy SM from old sever and configure on the server the index.html and the not found page (https://www.digitalocean.com/community/tutorials/how-to-create-a-custom-404-page-in-apache).. both with redirect.
Regards,
Breno Abreu

If you feel this was helpful please click the KUDOS! thumb below!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.