WordPress wp-admin Login Breaks

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 23 Jul 2012, 16:19

WordPress wp-admin Login Breaks

23 Jul 2012, 16:22

ISAPI_Rewite 3.0 is installed and working but everything works fine except "wp-admin" links. It just redirects me to the login screen after every login attempt. The really strange thing is that the first site i tested lets me login but none of the others do.

Here is the .htaccess file content I'm using:

RewriteEngine on

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/wp-admin/.*
RewriteRule .* /index.php [L]

Any ideas where to start sleuthing?

Thanks,
Denny

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: WordPress wp-admin Login Breaks

24 Jul 2012, 07:05

Hello,

The two conditions that check if it's a real file or directory do not work, 'cause ISAPI_Rewrite doesn't have sufficient permissions to check the folders content. So, please, first see here

You may also try the following:

Code: Select all
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(?:wp-admin|wp-login\.php).* [NC]
RewriteRule .* /index.php [L]


Regards
Andrew

User avatar
Posts: 2
Joined: 23 Jul 2012, 16:19

Re: WordPress wp-admin Login Breaks

25 Jul 2012, 17:57

Thanks Andrew - that worked!

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 13 guests