Forum Discussion
mbuk2k_59598
Aug 16, 2012Nimbostratus
301 Redirect Not Working
OK, we need to redirect the following using a 301:
http://www.ourwebsite.co.uk/mall/departmentpage.cfm/customer/_249553/1/Product1
to
http://www.newwebsite.co.uk/product/Product1
...
mbuk2k_59598
Aug 16, 2012Nimbostratus
I've also tried the following and although the syntax was accepted by the F5 like the iRule above, the actual redirect didn't work:
when HTTP_REQUEST {
if {([HTTP::host] equals "www.ourwebsite.co.uk") && ([HTTP::uri] equals "/mall/departmentpage.cfm/customer/_249553/1/Product1")} {
HTTP::respond 301 Location "http://www.newwebsite.co.uk/product/Product1" }
}
Please let me know if anyone has any suggestions, thank you.
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