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
Expand all | Collapse all

Difference between Redirect and Rewrite rule on IBM httpd server

  • 1.  Difference between Redirect and Rewrite rule on IBM httpd server

    Posted Wed March 29, 2017 09:54 AM

    Hi all,

     Please help me in understanding the difference with an example.

    kalyan.



  • 2.  RE: Difference between Redirect and Rewrite rule on IBM httpd server

    Posted Thu March 30, 2017 01:25 PM

    Hello,

    A rewrite doesn’t change the URL in the browser, but it does change the URL before the request is fully processed by IHS.

    A redirect changes the URL in the browser.

    Simply put, a redirect is a client-side request to have the web browser go to another URL. This means that the URL that you see in the browser will update to the new URL.

    A rewrite is a server-side rewrite of the URL before it’s fully processed by IHS. This will not change what you see in the browser because the changes are hidden from the user.

     

    Hope it helps!