Hello All
Here is my issue - this has had me banging my head against the wall for months now.
initially I had an issue with setting permalink structures in sites - it just hung the darn sites on a 404 error - anyway today I resolved that by updating the rules in the web.config file and for most of my sites its worked fine. - They now have nice friendly URL's and the pics all show up.
Great!
But there is one site that has me stumped - http://www.wisebuyspain.com
I set the permalink structure to /%category%/%postname%/ - and this works - the URL's are nice and friendly and MOST of the images are there.
"MOST" Being the operative term!
It seems that the site is now allowing the .JPG files to show but NOT the .PNG files (and we need some PNG's in there for various reasons).
For example if you look at the BLOG on the site and scroll down you will see that most of the images are there ... then they start to appear missing!
Also all the images on the SideBar widgets are not there;
However, if I set the permalink structure back to the default they all reappear again!
In trying to solve this issue (been on it 6 hours now) I have done the following:
1. Set the web.config file to read:-
<?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>
</system.webServer>
</configuration>
This works beautifully on my other sites. On this site it fixed the friendly URL issue for me.
2. Set the .htaccess file (in the root of the site) to read as follows:-
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
(this didn't work)
3. I then thought is might be a "literal pathing" issue and tried setting some of the paths from:-
to
/wp-content/uploads/2011/06/wisebuyspain-spanish-property-social-icon-twitter.jpg
(this didn't work)
4. I even thought it might just be the .PNG files affected so I took 4 of the PNG's and made new .JPG's the same and uploaded them as new files and changed the file extensions in the HREF tag that called the image from .png to .jpg
(this didn't work)
so ...
I AM COMPLETELY AND UTTERLY AT A LOSS!
Please, if anyone has a clue of how I can resolve this I would be eternally grateful.
Many thanks
Ray
PS: After three hours of Googling and Reading and trying different things it seems I am not the only one with this issue - WP need to put a fix in place if they can!