Forum Discussion
Austin_Geraci_1
Nimbostratus
19 years agoRedirect 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
19 years agoIf 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
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