WordPress.org

Ready to get started?Download WordPress

Forums

attachment linked to page results in 404 (7 posts)

  1. slambert
    Member
    Posted 8 years ago #

    Using the WP2.0 attachment uploader I have uploaded images, but when I choose "linked to page" the links give me a 404 page.

    Links to images work fine.

    Can't figure out what is happening...

  2. adresaklumea
    Member
    Posted 7 years ago #

    i have the same problem :((

  3. datasta
    Member
    Posted 7 years ago #

    I just created a topic, and realized, I have the same problem as well.

    Does anyone know how to fix it?

  4. datasta
    Member
    Posted 7 years ago #

    Bump.. Does anyone know?

  5. Sam_a
    Member
    Posted 7 years ago #

    I get this too with WordPress 2.0.7 + Apache/1.3 and permalinks like /%category%/%postname%.

    With this structure, my links to attachment templates look like /category/postname/attachmentname which WordPress seems to parse incorrectly as
    name=[attachmentname]&category_name=[category/postname] (from $wp_query).

    Links to attachment templates for files attached to Pages look like /pagename/attachmentname and they work fine, and if I switch to a permalink structure with no %category% label (like just `/%postname%/), all the attachment links work.

    (Also: I can see that WordPress is making rewrite rules like '.../attachment/*' => index.php?attachment=* but I've never seen a pretty permalink with /attachment/ in it.)

  6. ColourDreamer
    Member
    Posted 7 years ago #

    I have this problem with the category in my URLs, too. Can't there be a fix?

  7. Asbjørn Ulsberg
    Member
    Posted 7 years ago #

    Same problem here. Please fix this!

Topic Closed

This topic has been closed to new replies.

About this Topic