Forum Discussion
Scott_85950
Nimbostratus
Nov 13, 2010Root Domain Redirect Retaining Query String
Hi, I am looking to redirect, hopefully 301 redirect, from the default domain when called to a new home page location while retaining any appended query in the original URI. I have the following i...
Scott_85950
Nimbostratus
Nov 15, 2010Update; with further testing, we found that there were JavaScript errors generated by new queries being added to the URL when navigating in the site. We've further revised the iRule and are testing again to verify conflicts.
when HTTP_REQUEST {
if { [HTTP::path] eq "/" and [HTTP::query] ne ""} {
HTTP::respond 301 "Location" "http://[HTTP::host]/guest/en/home.shtml?[HTTP::query]"
}
}
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