Skip to main content
Frank_Geldof1
Level 3
March 21, 2019
Question

Change HTTP status code of Fallback page

  • March 21, 2019
  • 1 reply
  • 4665 views

When the fallback page is accessed it returns as:

Status Code - 200 OK

We would like to see it return as:

Status Code - 404 Not Found

According to Marketo support it is not possible to change this as it needs to be set on web server (which is shared).

Does anyone know if there are other possibilities to get the Fallback page to return with a 404 status code?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jay_Jiang
Level 10
March 21, 2019

Not entirely clear what your situation is and what you're trying to achieve.

Taking a stab though, since you set the fallback page in Admin, can't you just send it to a broken link?

Jay_Jiang
Level 10
March 21, 2019

If you specifically want the header with 404, create a page where you set the header and host it on your web server and point the fallback page to it

e.g. in php:

<?php

http_response_code(404);

?>