Forum Discussion
Chris_Phillips
Nimbostratus
Nov 22, 2006HTTPtoHTTPSredirect example not working
Hi,
a fair few threads with titles like this, but don't seem to be asking my question here...
i'm trying to use that example code: when HTTP_REQUEST {
HTTP::redirect h...
hoolio
Cirrostratus
Nov 24, 2006I forgot to note:
These examples are very dependent on the URI not containing double forward slashes (//). It all goes to pieces if the URI isn't absolute and the relative URI has //.
[Edit...]
Though, I guess you could build in logic to look for // only before the first /. That should cover all cases of absolute and relative URIs, except a relative URI that starts with a double forward slash (like //path/to/index.html). If you really wanted to cover all the bases, you could treat any URI that starts with // as a relative URI.
Aaron
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
