• Resolved JEDs

    (@jeds)


    WP 3.0 on localhost (WAMP) with custom permalinks set to:
    /%post_id%/%postname%/

    Using as cms (pages only)

    Everything works using default permalinks, and with the custom permalink the static page selected to load as the front page works fine.

    Some images (in sidebar and header) work fine on the other pages, also embedded video works but on other than the front page two images do not load.
    1 is hardcoded into page.php before the loop

    2nd is hard coded in footer.php

    apache access log shows that is inserting the custom permalink (for the page called) into the url for these 2 images:

    127.0.0.1 – – [27/Jun/2010:13:51:35 -0400] “GET /wordpress/my-second-page/wp-content/themes/mytheme/images/mypic.gif HTTP/1.1” 404 4259
    127.0.0.1 – – [27/Jun/2010:13:51:35 -0400] “GET /wordpress/my-second-page/wp-content/themes/mytheme/images/pic2.png HTTP/1.1” 404 4259

    [or GET /wordpress/my-second-page/wp-content/themes/mytheme/images/mypic.gif HTTP/1.1″ 404 etc]

    and returning them 404 not found, instead of wordpress/wp-content/themes/mytheme/images/pic2.png (where they live)

    Can this be fixed with a redirect in htaccess? If so, how to code?
    And to do it without stressing the server more than necessary?

    There are only 4 pages in addition to the front page, will not be more. I have searched checking all sources here (only 7 results all in WP Trac), plus Google. The google search results lead me to believe a hack to htaccess might work, but none were related specifically to images, and several were specific to IIS.

    Thanks for any suggestions

    -JEDs

Viewing 2 replies - 1 through 2 (of 2 total)
  • Use full (absolute) image urls.

    Thread Starter JEDs

    (@jeds)

    I suppose I didn’t think of that as I am building a template, so now I shall have to edit those 2 url’s.

    But thanks so much, works a hoot.

    -JEDs
    Simple problems can look so complex!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some images not loading with custom permalinks’ is closed to new replies.