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...
hoolio
Cirrostratus
Mar 03, 2010Hi Puneet,
If you want to redirect all requests made via HTTP to HTTPS with a 301, you can use this:
when HTTP_REQUEST {
Send 301 redirect to https with host and URI preserved
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]"
}
If that's not what you're trying to do, can you explain further?
Thanks,
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
