You can instruct IIS to provide to wp-login
a redirect_to
parameter towards wp-admin/
; this will do the trick:
<rule name="login" patternSyntax="ECMAScript">
<match url="^loginUrl/?" />
<action type="Rewrite" url="wp-login.php?redirect_to={UrlEncode:http://{HTTP_HOST}/wp-admin/}" />
</rule>
By the way, thanks for posting this question, it’s helping me to understand better the working of redirects and rewrites in IIS. I found this reference useful: String functions in IIS Rewrite Module
Related Posts:
- Does deleting the table users prevent all logins?
- wp_verify_nonce vs check_admin_referer
- How does admin-ajax.php work?
- How to Change the Default Home Page for the WordPress Dashboard?
- Securing Admin Accounts – Username Discovery
- Cannot access admin panel
- Daily notices of failed login attempts for non-existent admin user
- Setting Login with User Name and Password default option for Jetpack Admin Login
- I keep getting logged out in Firefox
- Change WP-Login or WP-Admin
- Error thrown. Cannot create references to/from string offsets
- Assuming a theme is properly secured, how save is the WordPress admin?
- How to determine if an admin is logged in outside the loop
- Don’t attribute content to admin users
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- Unable to login, old site with previous developer gone
- Using shared SSL for login/admin
- wp-login behind nginx reverse-proxy inaccessible — bad redirect?
- Can’t access dashboard as administrator, login as any other level works though
- WordPress ACL (folder + permissions)
- WordPress Admin Login Redirect Problem
- Unable to Access WP Admin or Login buttons after Migration
- Client system for media review?
- WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
- Keep Logged in Users out of Admin Panel
- Unable to get to the admin panel
- I can’t access the login panel on my offline website
- How do I diagnose a plugin resource 404?
- WordPress Brute Force Prevention
- Admin login not working
- Changing admin user id for database
- WordPress custom admin functions security
- Can’t login to my admin area
- Locked out of WordPress website from wrong amount of login attempts
- current_user_can(‘administrator’) not working in custom login
- Send admin to a different login than users?
- Want to know who is login Admin/User
- Remove iPhone detection on login page
- Any known plugins for master admin login to edit all on front end?
- Why does my admin email address keep changing to something random?
- Login to admin by frontend form?
- Error “Sorry, you are not allowed to access this page”
- I can’t access login page
- Where to store publicly-accessible files
- Admins loggin in to our wordpress site default to the admin page
- WordPress login not working
- Login to Admin Dashboard Problem
- WordPress login process is hanging
- WordPress “Hide WP” Gives Me Error After Admin Login [closed]
- Scripts are not called until I login from wordpress backend
- Disable wp-admin log on lightbox overlay
- How to cancel redirection to admin side
- Can’t access my wp admin: captcha images invisible, gives me error message
- 2FA for admin login only, is it doable?
- Admin Ajax is returning 0
- Add a Separator to the Admin Menu?
- Increase of failed login attempts, brute force attacks? [closed]
- Adding a custom admin page
- Custom admin email for new user registration
- A similar hook as wp_head for the admin area
- Hide allow trackbacks/pingbacks
- wordpress upload http error?
- Prevent Brute Force Attack
- Add Admin User via SQL
- How to remove Gravatar from Username column
- Page only shows when user is logged in (even with visibility set to public)
- get_template_part in admin
- Why Jetpack is missing the “Feedbacks” menu item? [closed]
- Create a Meta Box in the Admin User Screen?
- Send email to Admin when user/member updates specific user/member data
- Help with shortcode in admin-ajax [closed]
- Change top level menu item to point to custom submenu item
- Change admin logout URL
- Default admin color scheme as “blue”
- Can user #1 (the initial user) be deleted without ill effect?
- wp-admin post.php JavaScript Links Not Working
- Sniffing wordpress user’s credentials
- Remove duplicate product link from WooCommerce Page Row Actions
- How to set default editor tab
- Make the Status, Visibility, or Date fields opened by default in the Publish box
- Admin option sidebar count
- How to disable accessing the custom post types from frontend via a link?
- Show excerpt if no title in admin view
- hide default post body field in backend
- How to make the first widget box to be closed instead of open in admin
- Change default italic from to in admin editor
- Can I host WP-admin locally for a remote blog?
- How can I open up my administrative panel to everyone?
- Bind custom role to admin page
- How to Prevent Brute Force Attack on WordPress
- Backend Checkboxes working – but not visual?
- iframe with Youtube video appears for logged-in users, but not for incognito users
- Admin mode breaks with subdomains in latest WP
- If I use an alternative login (e.g. CAS or other SSO) plugin, is my site protected from the recent brute force login attempts?
- How do I create a post_id column, for admin posts list?
- Show private pages in public when you logged in as admin?
- How to exclude some post from admin edit screen
- Display Graphs in Admin Pages
- Custom styles and scripts for specific admin screen
- Is it possible to get rid of admin new updates notifications?