How to resolve 404 Not Found errors that occur when clicking on a product listed for sale in order to purchase it in WooCommerce, despite the regular pages displaying properly. The products exist in the database and are not missing.
Related Articles
Reset WordPress Permalink Structure
Reset Permalinks
CAUTION: Before doing anything listed below, create a backup of the WordPress database.
- SSH into the server
- Navigate to the site's document root
cd $(docroot.py domain.com)
REPLACE: domain.com with the domain of the site. - Run the following
wp rewrite flush
TIP: if you're receiving an error with the command, you can try adding--skip-{plugins,packages,themes}
to the end of the command (i.e.wp rewrite flush --skip-plugins
) - Visit the site again from another browser or an incognito/private browsing window to see if the issue is resolved
- If the issue persists, run the following to reset the permalinks
wp rewrite structure $(wp option get permalink_structure)
Comments
0 comments
Article is closed for comments.