Forum Discussion
Shohab_Baig_841
Nimbostratus
Oct 05, 2007redirect just first page (defualt page) of a website
Hi
I am trying to redirect just the first page of a domain name web site. for example if anyone hits http://test.com should be redirected to http://www.test.com but anyone access any other p...
hoolio
Cirrostratus
Oct 05, 2007Something like this?
when HTTP_REQUEST {
redirect to www.test.com if request is to test.com and URI is /
if {[string tolower [HTTP::Host]] eq "test.com" and [HTTP::uri] eq "/"}{
HTTP::redirect "http://www.test.com"
}
}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
