Forum Discussion
bhamman
Nimbostratus
Jul 18, 2013JDE Redirects
I'm new to the iRule game, and these things are probably pretty simple to do, but they're beyond me at this time. I'd like to have users just type "jde" into their browsers and have three things happ...
Kevin_Stewart
Employee
Jul 18, 2013If I may add:
1. Assuming you have DNS entries for both "jde" and "jde.example.com", you could definitely use an iRule to redirect the user to the FQDN:
----------------------
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "jde" } {
HTTP::redirect "http://jde.example.com[HTTP::uri]"
}
}
----------------------
2. 100% agree. Just make sure port translation is enabled in the virtual server configuration.
3. There is practically no condition where the URI will be blank. In the absence of a URI, any modern browser will simply send "/". You can then simplify the iRule logic to look for this minimal URI.
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