Forum Discussion
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
- Karthik_Krishn1
Cirrostratus
This is the irule I created ...
when HTTP_REQUEST {
if { [HTTP::uri] contains "/news" } {
HTTP::redirect "http://server_name.com/news"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com