redirect to a dedicated sign in page

this line did the task perfectly add_filter( ‘login_url’, function(){return /* the custom URL */;}); here is the explanation:(valid for wordpress 5.4.1) by the time admin_init fires, it’s too late already. once url/wp-admin is visited, index.php launches first then requires admin.php (line 10) then the file will execute 94. auth_redirect(); before 170. do_action( ‘admin_init’ ); auth_redirect() … Read more

WP admin page gives 404

Perhaps the siteurl or home value got modified when you tried to modify the site URL in WP admin? If so, it might make the front-end and the WP admin inaccessible because it is looking for WordPress in a directory in which it doesn’t exist. Fixing it in the database If you have access to … Read more