When I visit mydomain.com/wp-login, it redirects me to

  • wordpress.com/wp-login (in case I'm logged out of admin account)
  • mydomain.com/wp-admin (in case I'm logged in)

This is perfect as long as I'm using my admin account.

However, I am using the Product Vendors plugin by WooCommerce. Approved vendors are not able to login as they cannot visit the wp-login page of my website. Instead, they are asked for a WordPress account on the mentioned page.

I tried different browsers, including a version one that I just downloaded (mo cookies).

In addition the mentioned extensions, my site uses Jetpack.

I appreciate your support.


You trying to change you .htaccess file probably look like this:

Note: Don't forgot to clean your browser cache.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule  /wp-admin/ /wp-admin/index\.php [L,P]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
  • Thanks CKG, I appreciate your support. However, I am completely new to WordPress so I really do not understand your answer. – Omar Shazly Jul 30 '17 at 9:45
  • This is the default WordPress .htaccess file.. When you faced issue of redirection then you need to clear cache after update .htaccess file. – Chandra Kumar Jul 30 '17 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.