Forum Discussion
Puneet_73909
Nimbostratus
Mar 03, 2010HTTP Redirect
Hi,
I need help in rediret url.
Whenever user types is http://domain.com/xyz or any uri it should redirect it with 301 redirect.
I have done with HTTP::res...
Puneet_73909
Nimbostratus
Mar 03, 2010Thanks for your quick reply..
given below is my current iRule...
when HTTP_REQUEST {
if {([string tolower [HTTP::uri]] starts_with "/doc.html")} {
HTTP::redirect "http://[HTTP::host]/doc.html"}
elseif {[string tolower [HTTP::uri]] equals "/sitemap.xml"} {
pool new}
}
Now My requirement is to add another statement where I don't know the value of URI and need whenever user types in any URI it should redirect it with 301 redirect.
Thanks,
Puneet
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