Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress 500 (URL Rewrite Module Error.)

I am hosting a Wordpress website in IIS 8 I am getting the following error:

Failed to load resource: the server responded with a status of 500 (URL Rewrite Module Error.)

When I upload a new image and display. If I go to wp-content and give IIS_USRS access then the image works, when I add a new image I have to remove IIS_USRS and add it again for the image to work

If I use the following web config the website never loads

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
  <rules>
    <rule name="wordpress" patternSyntax="Wildcard">
      <match url="*" />
        <conditions>
          <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
          <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        </conditions>
      <action type="Rewrite" url="index.php" />
    </rule>
  </rules>
</rewrite>

like image 429
Donald Jansen Avatar asked Sep 02 '15 09:09

Donald Jansen


People also ask

What is URL Rewrite module?

About the URL Rewrite module The Microsoft URL Rewrite Module 2.0 for IIS 7 and above enables IIS administrators to create powerful customized rules to map request URLs to friendly URLs that are easier for users to remember and easier for search engines to find.

What is a URL Rewrite rule?

A rewrite rule defines the logic of what to compare or match the request URL with, and what to do if the comparison is successful. Rewrite rules consists of the following parts: Pattern – The rule pattern is used to specify either the regular expression or a wildcard pattern that is used to match URL strings.


1 Answers

I changed the permissions in the security tab to the wp-content folder of wordpress within the iis manager, it was necessary to edit and then I gave full control to IIS_USRS and the error was solved

like image 166
Alejandro Barillas Avatar answered Sep 28 '22 12:09

Alejandro Barillas