Forum Discussion
johns
Employee
Jul 28, 2005Using URI to rewrite host
I am trying to come up with a rule where the first directory name of the uri is used to rewrite the URL. an example will be:
http://www.foo.com/abc/doc/index.html =>
http://abc.foo.com...
johns
Employee
Aug 09, 2005Thanks for the help, Joe. I am stil having problem getting the correct result, though. The rule works in HTTPS with the trailing slash, but when the slash is not used, the Java dropdown menu's do not work, nor any of the buttons. It seems the links that are within the page do not contain the directory path that was initially in the first request.
The rule did add the path twice in front if the original host header, so I ended up commenting out the "HTTP::header replace "Host" $host" from the bottom of the rule.
And if I try the same in the HTTP, it simply does not work, and I have yet to figure out what is causing it.
I thought perhaps support would help, but they pointed me back here as the best resource. Thanks again for your help.
John
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