Forum Discussion
What_Lies_Bene1
Nov 28, 2012Cirrostratus
I think you've missed quotation marks around the new path. I've added some logging too;
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] equals "/app-a/index.php" } {
log local0. "Matched HTTP path of /app-a/index.php"
HTTP::path "/app-xyz/some-more/index.php"
log local0. "Replaced path"
HTTP::header replace Host "www.xyz.com"
log local0. "Replaced host"
}
}