Permalinks not working with WooCommerce
-
I am having issues with some pretty permalinks working OK (those that relate to Product) and others going to a themed 404 (those that relate to pages and posts).
Have searched for quite some time on the forums but cannot find another similar incident (though no doubt there must be).
I have woocommerce installed and am running TheRetailer theme (but I have the same problem with 2011 and 2012 WP theme). I have the latest versions of both installed. I use Bluehost as my host.
When I disable all plug-ins permalinks work fine. When I only enable WooCommerce they stop working again.
My website is https://www.cuddlesandpuddles.co.uk
I have tested Mod_Rewrite. I think the tests below should also demonstrate that this doesn’t look like the issue
For ref – here is the .htaccess file that is generated when pretty permalinks are enabled (I wanted to use /%postname%/.?
# BEGIN WordPress?<IfModule mod_rewrite.c>? RewriteEngine On RewriteBase /? RewriteRule ^index\.php$ - [L]? RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d? RewriteRule . /index.php [L] </IfModule>? # END WordPress?
Currently with using the Default settings
?`# BEGIN WordPress
?# END WordPress? `When I have permalinks set to Default the link for shop and products they look like this …. they work fine but are not what I want
https://www.cuddlesandpuddles.co.uk/?post_type=product?
https://www.cuddlesandpuddles.co.uk/?product=pink-taggieWhen I have permalinks set to anythng other than default (in my ideal case /%postname%/) the link for shop and products look like this …. and they work fine too (when I have pretty permalinks enabled of course) …. exactly what I want
https://www.cuddlesandpuddles.co.uk/shop/
https://www.cuddlesandpuddles.co.uk/taggies/pink-taggie/The issue is the Posts and Pages
The standard Pages and Posts are accessible via Default settings but then broken i.e. goes to a theme designed 404 (not webhost 404) when Permalinks /%postname%/ is enabled e.g.?
Default: https://www.cuddlesandpuddles.co.uk/?page_id=828
Permalink /%postname%/: https://www.cuddlesandpuddles.co.uk/blog/?
Default: https://www.cuddlesandpuddles.co.uk/?page_id=14
Permalink /%postname%/: https://www.cuddlesandpuddles.co.uk/cart/
?Default: https://www.cuddlesandpuddles.co.uk/?p=1608
Permalink /%postname%/: https://www.cuddlesandpuddles.co.uk/test-2/In terms of plug-ins:
I do not have any caching plug-in installed?
I do have Yoast SEO plug-in installed but have deactivated it whilst debugging and re-pushed the .htaccess files
- The topic ‘Permalinks not working with WooCommerce’ is closed to new replies.