Questions about custom error page

Hi. We recently had to change a bunch of URLs, and now some internal links on the site, plus some cached links on the web, point to the custom Sydney 404 page. My questions are:

  1. I’m using Broken Link Checker as the link checking tool. But the custom 404 page returns 200, so the link checked things that everything is ok. Is there a way to turn off the 200 reply and reply 404 instead? This way, I could find the broken links.

  2. Are there best practices when changing the URL? I know it’s not related to Sydney specifically but would appreciate some tips. Like setting forwarding from the old URL to the new URL somehow? How is that done in WP?

Thank you.

Hello,

  1. Please check these links:
    https://stackoverflow.com/questions/34361880/how-to-send-a-correct-status-header-with-wordpress
    https://wordpress.stackexchange.com/questions/91900/how-to-force-a-404-on-wordpress

  2. You can try to use Redirection or similar plugin.

Kind Regards, Roman.

Thank you. I know it’s not related to the theme, so thank you x 2.

You are welcome! :slight_smile:

Kind Regards, Roman.