Forum Discussion
gr0x_33657
Nimbostratus
Aug 13, 2009Redirect HOST and URI
I would like to redirect any domains to include www and also keep the URI, for example,
domain.com/folder2
to
www.domain.com/folder2
I have ...
The_Bhattman
Nimbostratus
Aug 13, 2009I think I see where the problem is
try
when HTTP_REQUEST {
if { [HTTP::host] eq "domain.com" } {
http::redirect "http://www.[HTTP::host][HTTP::uri]"
}
}
Hope this helps
CB
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
