• lucsar

    (@lucsar)


    Hi,

    I’ve noticed that each images attached to posts (in my case a woocommerce products) have a related permalink that doesn’t exist. It returns me an 404 error, page not found. No reference is made in sitemaps for these url’s but don’t really know if robots can skip the same or if they could find it anyway. Have tried also to enable Yoast redirect attachment URL’s feature, but no changes.. Could it be a “normal” wordpress behavior so we don’t have to take care?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Can you replicate the problem using the default Twenty Fourteen theme with all other plugins deactivated?

    Thread Starter lucsar

    (@lucsar)

    Problem seem to come from woocommerce product content type and the way how featured image is attached. In fact have no problems with posts or pages content type with attachment view.

    This happen only when setting up a featured image in product page. Once added, from library->edit featured image->view attachment page report systematically error 404:

    sitename.xxx/shop/category-1/product-name/featured-product-image-name <—error 404

    Here, “featured-product-image-name” is the file name of the attached image

    Same result with 2013 & 2014 WP default themes with no extra plugin active expect woocommerce.

    Config: WP 3.8.1 + woocommerce 2.0.20

    May could help: setting WP permalinks to default in common settings, no problems at all (!?)

    Thread Starter lucsar

    (@lucsar)

    Confirmed! and more precisely, this is the %product_cat% append to the shop base in product permalinks base that cause the issue.

    /shop/%product_cat% <—- removing category path %product_cat% all works fine

    Do you suggest to move this thread in a more relevant forum?

    Thread Starter lucsar

    (@lucsar)

    Confirmed! and more precisely, this is the %product_cat% append to the shop base in product permalinks base that cause the issue.

    /shop/%product_cat% <—- removing category path %product_cat% all works fine

    Do you suggest to move this thread in a more relevant forum?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Madia attachment page returns error 404’ is closed to new replies.