WordPress login loop on proxy setup with SSL – Apache proxy to IIS
WordPress login loop on proxy setup with SSL – Apache proxy to IIS
WordPress login loop on proxy setup with SSL – Apache proxy to IIS
finally this is working for me on my local WP installation after replacing – with _ from input attribute name and using full php start tags <?php instead of <? the final code is here copy and paste into your template. <?php if ( isset($_POST[“user_email”]) && isset($_POST[“user_password”]) ) { $user_login = esc_attr($_POST[“user_email”]); $user_password = esc_attr($_POST[“user_password”]); … Read more
Link https://prettypeople.nl/wp-admin redirects to https://prettypeople.nl/wp-login.php?redirect_to=https://prettypeople.nl/prettypeople//wp-admin/&reauth=1 According to me, the link should end like this: ?redirect_to=https://prettypeople.nl/wp-admin/&reauth=1 Check siteurl and home options in {wp_}options table and rewrite rules in .htaccess file .
So after doing some investigating myself a couple of weeks ago, I found out that it’s mainly due to Enfold. There was a conflict between Enfold and the WPUAM plugin. After disabling the checkbox through Enfold the issue disappeared. It seems like Enfold adds the checkbox to ANY login screen.
You can load the WP environment in order to verify the user’s login. Have a look at these previous answers: https://stackoverflow.com/questions/15304926/how-to-include-wordpress-functions-in-custom-php-file https://stackoverflow.com/questions/47251705/load-wordpress-page-content-from-external-php Include WP_Query in my own PHP file? You might also find it helpful to add define(‘WP_USE_THEMES’, false); to stop WP from loading the theme, etc, if it’s not needed in your php script.
If your theme adheres to WordPress standards the menu is generated with a call to wp_nav_menu. This function has a filter that allows you to modify the html. Like this: add_filter (‘wp_nav_menu’, ‘wpse312466_add_loginlink’); function wpse312466_add_loginlink ($nav_menu, $args) { $nav_menu = ‘<div id=”loglink”><a href=”https://wordpress.stackexchange.com/link/to/loginpage”>Login here</a></div>’ . $nav_link return $nav_menu } Now it depends on your css … Read more
You can add that redirection to your functions.php, you have to use the registration_redirect hook: function wpse_registration_redirect() { return home_url( ‘/page’ ); } add_filter( ‘registration_redirect’, ‘wpse_registration_redirect’ );
I faced a similiar problem that user seemed to be logged out after getting redirected after login. After refreshing the page or navigating to another page user would be logged in. A comment I saw here, Logging in redirects to correct page but shows logged out content until forced refresh, helped me to solve the … Read more
There are a few plugins that’ll limit this, including https://wordpress.org/plugins/remove-dashboard-access-for-non-admins/
Add the below code into your functions.php file function redirect_login_page() { $login_page = home_url(‘/login/’); //your redirect page link here $page_viewed = basename($_SERVER[‘REQUEST_URI’]); if ($page_viewed == “wp-login.php” && $_SERVER[‘REQUEST_METHOD’] == ‘GET’) { wp_redirect($login_page); exit; } } add_action(‘init’, ‘redirect_login_page’);