Forum Discussion
Mike_Graston_10
Nimbostratus
Jul 13, 2007Simple Base URl rewrite
OK I have been looking at this forum and I know it's here somewhere but can't find it. My issue is I have a proxy server sitting in front of a web site http:///abc.com. I need to rewrite the url going...
Mike_Graston_10
Nimbostratus
Jul 19, 2007Ok, for anyone following this I have successfully done this. I set up a stream profile and changed abc to def within the header. I also needed to setup a http profile set to rechunk then added an irule for the response going back to the browser so the user dos not know he is hitting a different url.
when HTTP_RESPONSE {
STREAM::enable
STREAM::expression "@abc@ @def@"
}
Whast also would probably work is 2 Irules one for the requst when HTTP_REQUEST
{ if { [HTTP::host] eq "abc.com" } { HTTP::header replace "Host" "def.com"
}
}
then one for the response:
when HTTP_RESPONSE {
STREAM::enable
STREAM::expression "@abc@ @def@"
}
Thanks for all the help.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects