• I have a domain that was running 3.05 fine. Links and images were working. Blog seems normal and healthy.

    As background, the site is on Windows IIS 6.0.
    one evening, I started to enable Network, specifically, enabling the sub-directory model.

    I came back a few days later, finding that it did not appear to be enabled, so at that time I enabled sub-domains.

    I imported a “wordpress.com” site and everything looked fine, except there were no post images and links were broken.
    Primary domain still had no problems.

    Today, after applying the latest updates, i returned to the sub-domain to see what was wrong.

    In the Network admin I noticed that I had a sub-domain site and a sub-directory site of the “sub.domain.com” and “domain.com/sub/”

    The sub-domain site is working, but links required that I put “/index.asp?/”
    between “sub.domain.com/” and the “/postname/”. Images also do not work on that site.

    On the parent site “domain.com” the links were not working as well. Both were originally setup to use permalinks in the custom format of “/%category%/%postname%/”.

    I just changed both back to default and the links work in both, but the images do not in “sub.domain.com”

    Does this spark any ideas?

Viewing 15 replies - 1 through 15 (of 28 total)
  • Thread Starter Richard

    (@coachrichard)

    UPDATE!!!!

    Changed all permalinks to back to default, then changed them to “custom” with value of “/index.php/%year%/%category%/%postname%/.”

    So now, all links are working. Not sure what happened.

    The only issue is sub.domain images are not working in the rendered site and are not in the gallery, but have placeholder images where they should be.

    Placeholder images? Like what?

    Or do you mean the box with the red X? (cuz that’s different)

    Thread Starter Richard

    (@coachrichard)

    Hi Andrea,

    By “placeholder images” I meant to say “thumbnails.” In the media management (said gallery) section (Media Library) of the admin panel and also in the “add image” modal window when editing a post the images all have a placeholder (image not found) where the image should be.

    On domain.com, everything is working fine, it is at sub.domain.com that the images are not rendering in the “Media Library, in “Posts, in the Post editor and in the modal dialogue box, where you adjust the image. Strangely, in the modal dialogue box for “Add “image”, while the image does not show, when you click edit image, it appears.

    I have checked the file system and the images are there. It seems to be a path confusion issue somewhere in a rewrite or other place.

    Here is a sample path that the image thumbnail gives as the url, although it is not there.
    http://sub.domain.com/files/2011/02/00437635-150×150.png

    A live link would help.

    The images are controlled by htaccess. On some servers, everything seems to work fine *except* that one line.

    Thread Starter Richard

    (@coachrichard)

    If you really need to see the live site, I can give it, but I try to keep them out of forums because of spam attacks that have come after posting them.

    Regarding htaccess, are there document exceptions that are alternates for the network setup generated htaccess code?

    There’s only two kinds of htaccess files for networks. A subdomain setup and a subfolder setup.

    There are no alternates. the image rewrites happens the same way.

    http://codex.wordpress.org/Create_A_Network#.htaccess_and_Mod_Rewrite

    Thread Starter Richard

    (@coachrichard)

    I have mine in the sub-domain format that is generated by WordPress at setup of networks.
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule . index.php [L]
    # END WordPress

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Changed all permalinks to back to default, then changed them to “custom” with value of “/index.php/%year%/%category%/%postname%/.”

    I think the fact that you need to do THIS is why, actually, the images aren’t showing. It’s not reading the parse right.

    WAG (wild a**ed guess), does http://sub.domain.com/index.php/files/2011/02/00437635-150×150.png work?

    If not, since you’re on IIS, maybe try this plugin: http://wordpress.org/extend/plugins/permalink-fix-disable-canonical-redirects-pack/

    We know there are some weird things with IIS and permalinks right now.

    Thread Starter Richard

    (@coachrichard)

    Hi Ipstenu,
    The sub.domain works, except for the images.

    Are the IIS issues released to he 3.1 release?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What I meant was the inclusion of index.php in your permalinks is a sign of the whacky. If you were using *nix, I would say your httpd.conf is messed up and isn’t parsing mod_rewrite correctly.

    And I’m not sure if there are IIS issues, or if it’s something more specific, but I DO know that people report that plugin fixes some weird linking issues, and I wonder if it’s related.

    @richard – what kind of server are you on?

    Thread Starter Richard

    (@coachrichard)

    My server details are:

    Windows 2003, IIS 6, PHP 5 and Micronovae is the package for Windows that uses the htaccess file for rewrites.
    My permallinks are working. It now is just the images that have some problematic paths, I beleive.

    BTW: This sub.domain site is new enough that I have deleted it, added another new site by the same name and re-imported the wordpress.com content. Unusually, the network admin console still showed two sites after I deleted one of them. I am going to the box physically and deleted the blogs.dir and re-add it to make sure that problem is worked through.

    Thread Starter Richard

    (@coachrichard)

    OH, and to Ipstenu’s comment, I am not using any plugins for rewrite…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Windows 2003, IIS 6, PHP 5 and Micronovae is the package for Windows that uses the htaccess file for rewrites.

    Yeah, Windows. I’m out. 🙂

    I do know it’s easier on IIS 7. I have no idea what Micronovae is, but I do know people had to tweak their web.config file.

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Permalinks broken and images not showing with Network install’ is closed to new replies.