Forum Discussion
Govin_48123
Nimbostratus
May 12, 2008Masking the URI and also redirecting!
Hi Gurus,
Below is the scenarios I am trying to implement, and need some help,
Case 1)User Types in http://www.site.com/, the application server basically does a 301 redi...
May 12, 2008
How about this?
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/home"
}
}
I think this satisfies all your criteria.
1. for http://www.site.com/, URI is converted from "/" to "/home" and sent to the backend server. The browser doesn't need a redirect for this and the address bar stays the same (http://www.site.com)
2. There will never be a request of (http://www.site.com), as hoolio mentioned, the browser will append a slash to empty URIs, so the URI will always be at a minimum a slash.
3. All other URI's are left alone and sent as is to the backend servers.
-Joe
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