Forum Discussion
URL Redirect never works first time
i have a simple irule that redirects users to a longer URL that we do not want them to have to remember.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/" {
HTTP::redirect "https://[HTTP::host]/psp/HRDEV91/?cmd=login&languageCd=ENG"
}
}
}
This irule NEVER works the first time a PC goes to https://website/ you get a page cannot be displayed. If you type it in again it redirect just like it should and all subsequent attempts to go to the root URL redirect you to the appropriate site. This happens from every PC i try it on. Any ideas what the problem could be?
- hoolio
Cirrostratus
Hi Brent, - brent112_11716
Nimbostratus
No other irules, we have ASM but it is not enabled on this virtual server. We are running version 11.2
i ran that command and the virtual server that i created does not show there, could it be because i used an iapp to create it?
- hoolio
Cirrostratus
If it's part of the iApp, it would be in a folder: - Brian_Van_Stone
Nimbostratus
Is there a difference between the "first time" being "http://www.example.com" or "http://www.example.com/"
Recent Discussions
Related Content
* 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