Forum Discussion
Clonining HTTP URLs
Hi Natass,
Thank you for your suggestion.
I applied following iRule and it worked:
when HTTP_REQUEST { if { ( [HTTP::uri] starts_with "/education" ) } { HTTP::respond 301 Location "www.genesys.com[HTTP::uri]" } }
On Big IP:
[cpatel@BIGIPASH5200-01:Active:Changes Pending] ~ curl -I http://172.16.2.235/education -H "Host: www.soundbite.com" HTTP/1.0 301 Moved Permanently Location: www.genesys.com/education Server: BigIP Connection: Keep-Alive Content-Length: 0
[cpatel@BIGIPASH5200-01:Active:Changes Pending] ~
HOWEVER,
When I enter the URL www.soundbite.com/education in a browser, it renders following 301 redirect: http://www.soundbite.com/www.genesys.com/education
So it takes in the www.genesys.com host part but does not get ride of SOundBite part!
Please advise.
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