IT BS Help

IIS 404 or 500 ERROR WHEN LOADING A STATIC IMAGE OR PAGE IN WORDPRESS

in Coding

Make sure you have a web.config file and text below

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”WordPress Rule” stopProcessing=”true”>
<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>
</system.webServer>
</configuration>

 

Then you need to make sure your folder where your files are located on the windows server have the permission IIS_IUSRS user full rights to the folders and files. Also check your php file forĀ upload_tmp_dir=C:\Windows\temp and make sure that folder whatever = upload tmp has the same permissions

iis-ws

 

fgfg

0