Strange rewrite behavior

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 19 Mar 2012, 12:22

Strange rewrite behavior

19 Mar 2012, 12:27

I have been using ISAPI Rewrite 3.0 (licensed version) for quite some time for multiple WP sites (all upgraded to 3.3.1) on my Win 2003 server with IIS 6. Recently had some security problems and changed the permissions on my directories which resulted in the images no longer being displayed. The sites work fine. Unfortunately, what's even stranger is that this behavior is only on 1 of my sites. I have changed none of my rewrite rules.

Here are my rules:

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index/.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?blogN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [NC,L]

# END WordPress

Site: http://blog.jasonthibeault.com

The fact that my rewrite rules are working for one site and not another is driving me absolutely nuts. I thought it was folder permission based but I'm not sure if that's the case. I have given my IUSER everything from basic read permissions to full access to the wp-content/blogs.dir folders with no luck.

I'm hoping this is a simple "oh, you just have to do this" solution. I have deleted the .htaccess file and re-built it (by re-entering and applying the rules in the rewrite manager) but, again, no luck.

Thanks for any help you can provide. Have been a very happy customer of the product.

Best,

Jason

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

Re: Strange rewrite behavior

20 Mar 2012, 07:22

Hello,

I did go to your blog.
Couldn't find any issues with pictures, except for couple 404 dead pages and misplaced sharing buttons. But nothing wrong with pics.

Usually, when tightening permissions, what you need is to provide list folder content permissions for the user that runs site's pool. You can follow this documentation

Regards
Andrew

User avatar
Posts: 2
Joined: 19 Mar 2012, 12:22

Re: Strange rewrite behavior

20 Mar 2012, 11:42

Thanks for replying. Actually, I just copied the entire blog from one directory to another and everything fixed itself. It's the simplest solutions that often work. Love your software, though. Has been working steadily for me for years! You can close this ticket.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 17 guests