Forum Discussion
Ethan_West_1101
May 01, 2008Historic F5 Account
301 to Redirect
Hi All,
I am trying to get an iRule working that will redirect on a 301 to the Specific Host URI requested. This is for an application that users request is without the trailing slash (http...
Ethan_West_1101
May 01, 2008Historic F5 Account
Hi Hoolio,
Yes that is exactly the case. The client makes a request like http://wwww.somesite.com/stockquotes which omits the trailing slash. The app then responds with a 301 with another internal path like http://www.somesite.corp/some/path which in turn breaks when accessing it say from the outside. It bascially is an issue when the trailing slash is included in the request the response is fine but when it is not which is the case 95% of the time the app responds with a 301 and it's broken.
How do I inlcude in the iRule to preserve the requested host/uri in the response to look like
http://www.somesite.com/stcokquote - response on 301 http://www.somesite.com/stockquote/.
Also FYI the rewrite redirect option in HTTP Profile does not work but I kind of expected that.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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