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
...
Richard__Harlan
Aug 16, 2012Historic F5 Account
If you run into problem and are trying to troubleshoot issuse I throw in some debug statments to make sure what I think it should be seeing is what it is seeing.
if you case you can run a quick log statment
log local0. "HTTP Host = [HTTP::host] HTTP uri = {HTTP::uri]"
In more complex iRules you can leave the log statment in place and use a debug value to turn them on and off like below
set debug 0
if ($debug) {
log local0. "debug message"
}
This way the only time you log anything is when you set your iRule to debug. You can even set different level and only turn some on depending on what level you set.
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