Forum Discussion
Albert__Tase_70
Nimbostratus
Feb 02, 2010re writing the url
ok I have looked into this and need some help
the customer wants to go to one url get redirect to another which in turn gets redirected to a third on https and wants the url the customer sees to bee X
thinking I may need to use the response value to accomplish this due to already tired the http:header replace host which did not work so would appreacate it if any one has done this before they do not want to due a redirect thtas already being done they just wantwhat the customers sees as the url to be x/ what ever
thanks
- The_Bhattman
Nimbostratus
Hi Albert, - Albert__Tase_70
Nimbostratus
no errors just in the clients browser the url stays the same it dose not get modfied or changed - The_Bhattman
Nimbostratus
Hi Al, - Albert__Tase_70
Nimbostratus
ok so first its being redirected to the proper site unfortunenatly this is what is happening. - The_Bhattman
Nimbostratus
If the redirects from url to another on the same webserver hitting the same virtual address then it's possible to use the LTM to send the traffic to the correct URI w/o further changing Host portion or the URI - Albert__Tase_70
Nimbostratus
nope it hits one virtual server get redirect to another virtual server which inturn redirects it to the same virtual server on 443 I know why all the redirects customers apps anyway would respone with a HTTP:uri "xxx" work where buy the http uri or url would then be sent back to the client ? - Colin_Walker_12Historic F5 AccountIf you're trying to rewrite the response without the user seeing a redirect then the HTTP::uri command won't quite get you there, as it won't rewrite a response URI, just a request URI. What you'd need to do is use the HTTP::header command to rewrite the locaiton.
when HTTP_RESPONSE { HTTP::header replace location "http://www.bob.com" }
- Albert__Tase_70
Nimbostratus
I have tired evrything - hoolio
Cirrostratus
Hi Al,
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