HTTP Error 500.50 – URL Rewrite Module Error – WordPress Images
Was looking at a WordPress install today on Windows. We had just installed the nice URL rewriter but new images, when clicked to their full size version were giving an error:
HTTP Error 500.50 – URL Rewrite Module Error.
Module RewriteModule
Notification BeginRequest
Handler StaticFile
Error Code 0×80070005
At first I thought this was a problem with the URL Rewriter, however a bit of digging around showed it was a problem with Permissions.
When WordPress uploads an image it uploads it to the Temp folder defined in php.ini. On a Windows box this tends to be C:/WINDOWS/TEMP
However if the IIS_IUSRS user doesn’t have read and white access on here the permissions get all screwed up when moving the file to /wp-content/uploads/
Easy fix, go onto the server, find the C:/Windows/Temp folder, right click and go to Properties, go to the Security Tab and Click Edit.
Then Highlight the IIS_IUSRS name and click “Read and Write” Permissions.
Any broken images can be fixed by doing exactly the same on the /wp-content/ folder