Forum Discussion
Venkat_96085
Nimbostratus
Apr 24, 2009URL Redirection
Hi friends,
I am a newbie to iRules and neither a coder. i have the following scenario and i need irules for this.
When some user connects to a URL say example: www.xyz.com the user has to get redirected to www.xyz.com/search/home.asp
Similarly when somebody connects to a URL www.xyz.com/fslink the user has to get redirected to www.xyz.com/search/home.asp
Appreciate if you can send me the iRules for the above.
Thanks,
Venkat
- hoolio
Cirrostratus
Hi Venkat,when HTTP_REQUEST { Check if request is to / or /fslink switch [string tolower [HTTP::path]] { "/" - "/fslink" { Redirect client HTTP::redirect "http://www.xyz.com/search/home.asp" } } }
- Venkat_96085
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
That looks good.
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