Forum Discussion
Austin_Geraci_1
Nimbostratus
Mar 13, 2007Redirect Problem
I just want to do a basic redirection;
www.mydomain.com
www.mydomain.com/directory1/directory2
When I use the syntax below I get;
www.mydomain.com/www.mydomain....
hoolio
Cirrostratus
Mar 13, 2007If you don't include the protocol in the redirect the browser assumes appends the new redirect value to the URI is just requested. If you add http:// or https:// to the redirect it should work fine:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::redirect "http://www.mydomain.com/directory1/directory2/"
}
}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