WordPress.org

Support

Support » How-To and Troubleshooting » 404 showing on private page

404 showing on private page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Changing the 404.php is not a viable solution and neither is hacking the core.

    Agreed, but you can always create a child theme with a custom 404 page that will display whatever you want, including a log in link.

    It seems to me that there should/might be a function to include in a child theme functions.php file to handle redirection of private pages to a log-in page, but I haven’t searched for it before.

    esmi

    @esmi

    Forum Moderator

    this would not be a “404” but would remind a user to login in order to access the page because the page DOES EXIST but requires login to see it, therefore a 404 is not apropos.

    Already been raised as a bug and rejected.
    https://core.trac.wordpress.org/ticket/23407

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 showing on private page’ is closed to new replies.
Skip to toolbar