Forum Discussion
Joe_Pipitone
Nimbostratus
Sep 30, 2015Redirecting - avoiding redirect loop
We have a site that has many pages indexed by search engines. We want all of those pages redirected back to the root domain, removing the uri and redirecting the client to http://domain.com/home.aspx...
Kevin_Stewart
Employee
Sep 30, 2015So what you're saying is, if the client side destination port is 80 (which it always is), issue a redirect to the home.aspx URI. That will most certainly create a redirect loop. So how about something like this:
if { not ( [string tolower [HTTP::uri]] starts_with "/home.aspx" ) } {
HTTP::redirect "http://domain.com/home.aspx"
}
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