web.config stops images displaying
-
Hi guys,
I’ve spent days reading different suggestions related to this (I believe common) issue.. but so far I haven’t found a solution.
I changed my site to the ‘pretty’ permalinks (post name), and as I’m on a windows server, it caused configuration problems: “404 – File or directory not found”.
Following this, my hosting provider added a web.config file for me, which has resolved the problem of the links on my site, however in doing so, it has blocked access to the image files, so my site now displays no images.
It seems I can either have one or the other – pretty permalinks or images.
This is the code in the web.config:
<configuration> <system.webServer> <rewrite> <rules> <rule name="wordpress" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <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>
Where am I going wrong?!
Thanks in advance!!
G
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘web.config stops images displaying’ is closed to new replies.