RESPONSE_STATUS Returns 200 When Browser Console Shows Http Header is 404
I have a large site which has a considerable number of content items getting published and unpublished on a daily basis. When an item is deleted or unpublished I want to redirect it to it's parent so have a rule that looks as follows:
If I visit a page in my browser that has been unpublished I get the following headers:
Request URL:http://localhost:51294/uk/guide/hotels/another-hotel/
Request Method:GET
Status Code:404 Not Found
Remote Address:[::1]:51294
But in the trace logs where I am trying to debug the rule I get the following:
RuleName OldHotelPages
RequestURL uk/guide/hotels/another-hotel/
QueryString
PatternSyntax Regex
StopProcessing false
RelativePath /
Pattern ^(.*)/hotels/(.+)/$
Input uk/guide/hotels/another-hotel/
Negate false
Matched true
Great, we have matched the request path! However, the issue I have is when it comes to matching the conditions in my rule, the trace shows the following:
Input {RESPONSE_STATUS}
ExpandedInput 200
MatchType Pattern
Pattern ^404$
Negate false
Succeeded false
The ExpandedInput shows a status of 200 which is different to the response header seen in the browser?
RESPONSE_STATUS Returns 200 When Browser Console Shows Http Header is 404
I have a large site which has a considerable number of content items getting published and unpublished on a daily basis. When an item is deleted or unpublished I want to redirect it to it's parent so have a rule that looks as follows:
If I visit a page in my browser that has been unpublished I get the following headers:
But in the trace logs where I am trying to debug the rule I get the following:
RelativePath /
Pattern ^(.*)/hotels/(.+)/$
Great, we have matched the request path! However, the issue I have is when it comes to matching the conditions in my rule, the trace shows the following:
The ExpandedInput shows a status of 200 which is different to the response header seen in the browser?
I'm a bit stumped at this point. Any ideas?
Thanks, Simon
is working on a reply...