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...
melcaniac
Cirrus
Dec 13, 2012This is what we do, we have a virtual server that just redirects to the www address. The 301 response means that SEO vendors will know that this is a permanent move and that they should go to the www server. We have our DNS entries without the www pointed to the IP of the virtual server with this iRule:
when HTTP_REQUEST {
HTTP::respond 301 Location [http://www.[HTTP::host][HTTP::uri]]
}
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