• Hello!

    I am running WP 4.6.1 with WooCommerce 2.6.4, PHP 5.6.22, MySQL 5.6.17

    On this standard WordPress page (http://localhost/a10_bop/bop-products/drums)

    I use the following shortcode:
    [product_category category=”drums” order=”asc” per_page=”2″]

    The pagination shows at the bottom of the screen, which is good.

    (There are 9 products in the drums category but I use per_page=”2″ for testing purposes.)

    The generated paginated links are like:
    http://localhost/a10_bop/bop-products/drums/page/2 or
    http://localhost/a10_bop/bop-products/drums/page/3

    and so on.

    When I click on any of the links I get a 404: Page Not Found error.

    My .htaccess is pretty standard:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /a10_bop/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /a10_bop/index.php [L]
    </IfModule>

    # END WordPress

    For permalinks, I have the following:
    Category base:
    bop-products

    Shop product custom base:
    /bop-products/%product_cat%

    If anyone could shed some light on the issue, I’d really appreciate it.

    Thanks for your time!

    • This topic was modified 9 years, 7 months ago by josephlevin.
Viewing 1 replies (of 1 total)
  • Thread Starter josephlevin

    (@josephlevin)

    It seems that my permalinks were to blame.

    For the pagination to work I had to use this set of permalink settings:
    Category base: (uses default of product-category)
    [left blank]

    Shop custom permalink:
    /shop/%product_cat%

    With that in place, pagination with URLs ending in /page/2 , etc. works as expected.

    It is likely not critical, but is there any way to get the pagination to work with my old permalink settings, which were:
    Category base:
    bop-products

    Shop product custom base:
    /bop-products/%product_cat%

    Thanks for your time!

Viewing 1 replies (of 1 total)

The topic ‘404:Page Not Found Error’ is closed to new replies.