Forum Discussion
irule errors when upgrading from 11.5.3 to 13.1.1.4
I am upgrading our code from 11.5.3 to 13.1.1.4 and having some issues with older irules breaking. Have the following redirect code and need to know how to rewrite to work with 13.1.1.4.
Need to re-write code to work with 13.1.1.4, currently getting "error:[undefined procedure:" I am not a coder. Errors from noserver line down error: [undefined procedure:
} elseif { $bpath starts_with "/uri1" } {
HTTP::respond 301 \$
noserver \$
"X-RE-Ref" "0 301" \$
"Location" "https://host.domain.com/uri2" \$
"Expires" "Tue, 31 Dec 2030 12:00:00 GMT" \$
"Cache-Control" "max-age=1924983804" \$
"Connection" "close"
- Rico
Cirrus
It looks like support was removed for the '/$' syntax. The HTTP::respond command should follow the syntax listed on this page. I was able to save the iRule with no errors if I just made your command all on one line like this:
HTTP::respond 301 noserver X-RE-Ref "0 301" Location "https://host.domain.com/uri2" Expires "Tue, 31 Dec 2030 12:00:00 GMT" Cache-Control "max-age=1924983804" Connection "close"
Recent Discussions
Related Content
* 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