Forum Discussion

Brian_Mayer_841's avatar
Brian_Mayer_841
Icon for Nimbostratus rankNimbostratus
Sep 12, 2007

LTM URL mod rewrite?

We are planning the launch of a new eCommerce site (catalog.company.com) in the next few months. The eComm site will launch in parallel with our new Content Mgmt System (www.company.com).

 

 

We are trying to identify a solution so that ONLY the root page (index.html) of https://catalog.company.com is actually served up from http://www.company.com. The rest of the site will be served directly from CATALOG.

 

 

We don't want to redirect our users to the WWW site then send them back, so a redirect iRule is not an option. In essence, we want the web server behind CATALOG to make the request to WWW on behalf of the end user just for the initial home page GET.

 

 

Can the LTM do this? Is there any way to have the LTM manage the requests so that this one single HTML page is served up from the WWW server, but all other CATALOG GET requests are sent to the CATALOG server?

 

 

We are considering an ISAPI filter to handle these requests "behind-the-scenes", passing them off to WWW for processing and showing the results back via the CATALOG site. So the user's browser never leaves catalog.xxx.com. We're sure that will work but just want to know if the LTM can help us out here instead.

 

 

Thanks,

 

Brian
  • Here is some code (might have some syntax errors I don't have time to test):

     

     

    when HTTP_REQUEST {

     

    if { [HTTP::uri] equals "/index.html" or [HTTP::uri] equals "/"} {

     

    HTTP::header replace Host: "www.company.com"

     

    pool WebPool

     

    } else {

     

    pool CatalogPool

     

    }

     

    }
  • I see. So this iRule does not actually redirect to the new site, it only pulls the page from the WWW server and still shows the Catalog.company.com in the URL? I guess I can try to play with it a bit.

     

     

    Best,

     

    Brian