Forum Discussion
smeisenzahl
Employee
Dec 13, 2012Irule simple redirect or not?
I have an issue where I think I need a redirect but I'm not sure
I have a site http://www.testsite.com that is in production and I can't modify the vs at this time. When users type www.testsite...
smeisenzahl
Employee
Dec 13, 2012I just changed the irule to look like the following and it still works and gives me the 301 I was looking for
when HTTP_REQUEST {
set host [HTTP::host]
set uri [HTTP::uri]
HTTP::respond 301 Location "http://www.$host$uri"
}
Thanks again for everyone's help
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