• Resolved Eric

    (@epcom)


    Hello everyone,

    I don’t know if it is related to my WordPress instance only but when I try to reach a page that does not exists with this plugin enabled (by using a url with a random slug), I have a “too many redirects” error.

    But if I disable the force plugin (or if I let it enabled while I’m already logged in), the WordPress default redirection to 404 default page is working well.

    Then, I tried to manage access to the 404 page by adding the snippet code to bypass force plugin in theme/functions.php (trying to set $bypass = true; when is_page('404')) but it didn’t work.

    Any suggestion on how to manage this ?

    Thank you !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    What happens if you disable all other plugins and switch to a default WordPress theme? Make sure another plugin or your theme isn’t causing a conflict with Force Login.

    Also, make sure is_page('404') is the condition you need to bypass. You might need to use the is_404() condition instead. However, this would allow public access to your 404 page, if that’s your goal.

    I suspect something in your theme or another plugin is causing a conflict with Force Login, resulting in a redirect loop. You’ll need to run some tests to determine where the conflict is to fix it.

    Thanks, good luck!

    Thread Starter Eric

    (@epcom)

    Thanks a lot @kevinvess for your quick answer (more than mine, sorry!)

    Your answer put me on the right track: I’m far from a WordPress expert and didn’t knew about is_404()
    Using this the right way solved all my problems.

    Thank you very much for your kindness as well as your work !

    • This reply was modified 1 year, 3 months ago by Eric. Reason: Soved
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manage 404 pages’ is closed to new replies.