• I would like to keep people and bots away from registering and logging in from wp-login.php. I want to send everyone to the “oops, that page can’t be found” (the same one on my theme). How do I do this without a plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter xtjoeywx

    (@xtjoeywx)

    I have woocommerce and users can login on the front end.

    Thread Starter xtjoeywx

    (@xtjoeywx)

    No one has replied to this for me. If anyone knows how to do this please help. Thanks.

    warning: No retreat
    edit wp-login.php > delete all code > place a redirect to your opps page.

    <?php $oppslink = 'https://example.com/opps.php'; //your opps page
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: $oppslink" );
    exit(0);
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I want to redirect wp-login and register to my "oops" page’ is closed to new replies.