Forum Discussion

Karthik_Krishn1's avatar
Karthik_Krishn1
Icon for Cirrostratus rankCirrostratus
Apr 04, 2013

Http Redirect

Hello ,

 

We migrated our SAP Netweaver portal to the F5 last night and one applet within the portal page is not working , There is a small applet called "Streaming news " which is not working . I created an irule which would look for the uri " /news " and redirect it to the news server ie " http://server_name.com/news " . When I use the F5 irule editor to generate traffic I get a " 404 not found error " , however when I enter the url ie the complete url "https://portalname.domain.com/news " it gets redirected properly . It just does not do it from within the page .

 

Before the move to F5 , we were using Apache and there was a proxy pass rule configured.. and the rule is as below:

 

 

ProxyPass /news http://http://server_name.com/news

 

ProxyPassReverse /news http://server_name.com/news

 

 

I looked at the proxy pass code .. and it looks like that is too much work to acheive a simple redirect .

 

 

I am new to the irules and would appreciate any help with this

 

 

Thanks,

 

 

karthik

 

 

1 Reply

  • This is the irule I created ...

     

     

    when HTTP_REQUEST {

     

    if { [HTTP::uri] contains "/news" } {

     

    HTTP::redirect "http://server_name.com/news"

     

    }

     

    }