Forum Discussion
Dishant_298426
Dec 09, 2016Nimbostratus
URL Redirection IRule
Can i get the Irule for redirection of https://www.pitneybowes.us/shop/ink-and-supplies/postage-meter-ink-and-supplies/for-dm100i-dm125-dm225/en-us/storeus to https://www.pitneybowes.us/shop/in...
- Dec 09, 2016
Hi Dishant, you can try this:
(Thanks to Stanislas - using respond, relative path and not use string to lower in case its not necessary)
when HTTP_REQUEST { if { (([string tolower [HTTP::host]] contains "www.pitneybowes.us") and ([HTTP::uri] equals "/shop/ink-and-supplies/postage-meter-ink-and-supplies/for-dm100i-dm125-dm225/en-us/storeus")) { HTTP::respond 301 noserver Location "/shop/ink-and-supplies/postage-meter-ink-supplies/for-dm-series/en-us/storeus" } }
Stanislas_Piro2
Dec 09, 2016Cumulonimbus
Hi,
try this:
when HTTP_REQUEST {
if { [HTTP::host] equals "www.pitneybowes.us" && [HTTP::uri] equals "/shop/ink-and-supplies/postage-meter-ink-and-supplies/for-dm100i-dm125-dm225/en-us/storeus" } {
HTTP::respond 301 noserver Location "/shop/ink-and-supplies/postage-meter-ink-supplies/for-dm-series/en-us/storeus"
}
}
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