WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Application URL redirection

  • 1.  Application URL redirection

    Posted Wed March 18, 2015 05:46 AM

    Hello all,


    Hope everyone doing good!!! 


    Can someone please explain how the application will get the default page when we hit the application with its URL


    http://hostname/Context_Root (For eg. portal.actcorp.in/web which will automatically redirects to portal.actcorp.in/web/hyd/home)


    One of the approaches which I know is that we can hardcode it in webserver's config file (httpd.conf) by adding the RedirectPermanent tag in VirtualHost tag entries.


    Something like

    RedirectPermanent http://portal.actcorp.in/web  http://portal.actcorp.in/web/hyd/home


    I guess it can also works using the deployment descriptor of application without disturbing weberver configuration. Could someone please explain the same or provide me some blog's link to understand this whole redirection thing.


    Thanks!!!