Links to product pages get redirected to 404
-
Hello there,
After I have made changes in the product category structure, added some new product categories, and renamed some old product categories, the links to the product pages get redirected to 404, nevertheless all products got assigned to the changed product categories. The permalinks are already updated. How can this problem be fixed?
Theme used: Astra (free)
Plugins used: WooCommerce (free), Germanized for WooCommerce Pro, Elementor Pro, WooLentor Pro.The theme and all plugins got updated to the latest version.`
-
This topic was modified 3 years, 4 months ago by
Don Kong.
-
This topic was modified 3 years, 4 months ago by
Don Kong.
The page I need help with: [log in to see the link]
-
This topic was modified 3 years, 4 months ago by
-
Hi there @don-kong ??
Based on what you have shared, this sounds more like a Permalinks issue which could be caused by the server setup used.
My recommendation would be that you go to WordPress > Settings > Permalinks and then click ‘Save Changes’. This will refresh the permalinks on your site and hopefully resolve the matter.
If it does not, could you please let us know what changes you made to the Product Category Structure?
I also recommend that you ask your Web Host if your site has its.htaccess
file setup as shown here: https://www.ads-software.com/support/article/htaccess/Let us know how it goes ??
Hello Joash,
Thanks for the quick reply. I updated the permalinks first after I found the error, and the .htaccess is the same as the example shows.
The main changes I made to the product categories were that I created some new main categories and then moved existing main categories as subcategories under the new main categories.
I forgot to mention that I also renamed the permalink base for the products.
Hello @don-kong
We’d like to take a further look at this, can you please share your permalink settings using a tool like https://snipboard.io and your System Status? You can find it via WooCommerce → Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Thanks!
Hello Mirko P.,
Thank you for your help. Here is the screenshot of the permalink page:
https://snipboard.io/MXjsqJ.jpgHere system status:
### WordPress Environment ### WordPress address (URL): https://pepperfarmkampot.com Site address (URL): https://pepperfarmkampot.com WC Version: 5.9.0 REST API Version: ? 5.9.0 WC Blocks Version: ? 6.1.0 Action Scheduler Version: ? 3.3.0 WC Admin Version: ? 2.8.0 Log Directory Writable: ? WP Version: 5.8.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: de_DE_formal External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.25 PHP Post Max Size: 200 MB PHP Time Limit: 30 PHP Max Input Vars: 3000 cURL Version: 7.58.0 OpenSSL/1.1.1 SUHOSIN Installed: – MySQL Version: 5.7.34-nmm1-log Max Upload Size: 200 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.9.0 WC Database Prefix: wp_ Datenbank-Gesamtgr??e: 50.48MB Datenbank-Datengr??e: 34.33MB Datenbank-Indexgr??e: 16.15MB wp_woocommerce_sessions: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_api_keys: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Daten: 0.64MB + Index: 0.35MB + Engine MyISAM wp_woocommerce_order_itemmeta: Daten: 4.92MB + Index: 3.58MB + Engine MyISAM wp_woocommerce_tax_rates: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_log: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Daten: 0.19MB + Index: 0.08MB + Engine MyISAM wp_actionscheduler_claims: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Daten: 0.13MB + Index: 0.09MB + Engine MyISAM wp_borlabs_cookie_consent_log: Daten: 5.74MB + Index: 2.22MB + Engine MyISAM wp_borlabs_cookie_content_blocker: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_borlabs_cookie_cookies: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_borlabs_cookie_groups: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_borlabs_cookie_script_blocker: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cleverreach_config: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cleverreach_entity: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cleverreach_process: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cleverreach_queue: Daten: 0.10MB + Index: 0.01MB + Engine MyISAM wp_commentmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_comments: Daten: 1.54MB + Index: 0.80MB + Engine MyISAM wp_duplicator_packages: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_e_submissions: Daten: 0.05MB + Index: 0.08MB + Engine MyISAM wp_e_submissions_actions_log: Daten: 0.01MB + Index: 0.02MB + Engine MyISAM wp_e_submissions_values: Daten: 0.26MB + Index: 0.03MB + Engine MyISAM wp_links: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nextend2_image_storage: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_nextend2_section_storage: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_nextend2_smartslider3_generators: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nextend2_smartslider3_sliders: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nextend2_smartslider3_sliders_xref: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nextend2_smartslider3_slides: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Daten: 2.28MB + Index: 0.12MB + Engine MyISAM wp_postmeta: Daten: 10.96MB + Index: 5.09MB + Engine MyISAM wp_posts: Daten: 1.66MB + Index: 0.34MB + Engine MyISAM wp_shortpixel_folders: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_shortpixel_meta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_storeabill_documentmeta: Daten: 0.05MB + Index: 0.03MB + Engine MyISAM wp_storeabill_documents: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_storeabill_document_itemmeta: Daten: 0.16MB + Index: 0.08MB + Engine MyISAM wp_storeabill_document_items: Daten: 0.01MB + Index: 0.02MB + Engine MyISAM wp_storeabill_document_noticemeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_storeabill_document_notices: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_storeabill_journals: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Daten: 0.01MB + Index: 0.02MB + Engine MyISAM wp_terms: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_term_relationships: Daten: 0.01MB + Index: 0.02MB + Engine MyISAM wp_term_taxonomy: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM wp_tm_taskmeta: Daten: 0.08MB + Index: 0.01MB + Engine MyISAM wp_tm_tasks: Daten: 0.02MB + Index: 0.01MB + Engine MyISAM wp_usermeta: Daten: 1.25MB + Index: 0.69MB + Engine MyISAM wp_users: Daten: 0.08MB + Index: 0.08MB + Engine MyISAM wp_wc_admin_notes: Daten: 0.03MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Daten: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Daten: 0.21MB + Index: 0.17MB + Engine MyISAM wp_wc_download_log: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_order_product_lookup: Daten: 0.33MB + Index: 0.28MB + Engine MyISAM wp_wc_order_stats: Daten: 0.25MB + Index: 0.18MB + Engine MyISAM wp_wc_order_tax_lookup: Daten: 0.17MB + Index: 0.23MB + Engine MyISAM wp_wc_product_meta_lookup: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wc_reserved_stock: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_dhl_im_products: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_dhl_im_product_services: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_dhl_labelmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_dhl_labels: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_packaging: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_packagingmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_shipmentmeta: Daten: 1.05MB + Index: 0.41MB + Engine MyISAM wp_woocommerce_gzd_shipments: Daten: 0.30MB + Index: 0.09MB + Engine MyISAM wp_woocommerce_gzd_shipment_itemmeta: Daten: 0.40MB + Index: 0.35MB + Engine MyISAM wp_woocommerce_gzd_shipment_items: Daten: 0.32MB + Index: 0.24MB + Engine MyISAM wp_woocommerce_gzd_shipment_labelmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_shipment_labels: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_shipping_provider: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gzd_shipping_providermeta: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wt_iew_action_history: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_cron: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_ftp: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wt_iew_mapping_template: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_indexable: Daten: 0.73MB + Index: 0.16MB + Engine MyISAM wp_yoast_indexable_hierarchy: Daten: 0.02MB + Index: 0.07MB + Engine MyISAM wp_yoast_migrations: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_primary_term: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM wp_yoast_seo_links: Daten: 0.24MB + Index: 0.05MB + Engine MyISAM wp_yoast_seo_meta: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM ### Post Type Counts ### acf-field: 3 acf-field-group: 3 attachment: 418 cmm4e_menu_theme: 1 custom_css: 2 document_template: 7 elementor_icons: 1 elementor_library: 19 invoice: 6 ml-slide: 1 ml-slider: 1 nav_menu_item: 65 oembed_cache: 9 page: 23 post: 40 product: 65 product_variation: 3 revision: 12 shop_coupon: 29 shop_order: 3306 shop_order_refund: 87 soliloquy: 1 sp_wps_shortcodes: 1 wcpcsu-custom-post: 1 wpcf7_contact_form: 12 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (24) ### Advanced Custom Fields: von Delicious Brains – 5.11.1 Astra Widgets: von Brainstorm Force – 1.2.9 Child Theme Configurator: von Lilaea Media – 2.5.8 CleverReach? WP: von CleverReach GmbH & Co. KG – 1.5.13 Contact Form 7: von Takayuki Miyoshi – 5.5.2 Duplicator: von Snap Creek – 1.4.3 Google Tag Manager for WordPress: von Thomas Geiger – 1.13.1 Elementor Pro: von Elementor.com – 3.5.1 Elementor: von Elementor.com – 3.4.8 Enable Media Replace: von ShortPixel – 3.6.2 Essential Addons for Elementor: von WPDeveloper – 4.9.6 ShortPixel Image Optimizer: von ShortPixel – 4.22.6 Vendidero Helper: von Vendidero – 2.1.0 Product Slider for WooCommerce: von ShapedPlugin – 2.4.0 Sofortueberweisung / Klarna Gateway for Woocommerce: von Michael Leithold – 1.3.4 WooCommerce Stripe-Gateway: von WooCommerce – 5.8.0 Germanized für WooCommerce Pro: von vendidero – 3.3.6 Germanized für WooCommerce: von vendidero – 3.7.2 WooCommerce: von Automattic – 5.9.0 WooLentor Pro: von HasThemes – 1.8.0 WooLentor - WooCommerce Elementor Addons + Builder: von HasThemes – 2.1.0 Yoast SEO: von Team Yoast – 17.6 WP Fastest Cache: von Emre Vona – 0.9.5 WP-Optimize - Clean, Compress, Cache: von David Anderson Ruhani Rabin Team Updraft – 3.1.12 ### Inactive Plugins (2) ### Borlabs Cookie - Cookie Opt-in: von Benjamin A. Bornschein Borlabs – 2.2.36 CTX Feed: von WebAppick – 4.4.38 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop-Basis: #56 - /shop/ Warenkorb: #14637 - /warenkorb/ Kasse: #14596 - /kasse/ Mein Konto: #59 - /mein-konto/ Allgemeine Gesch?ftsbedingungen: #14368 - /agb-allgemeine-geschaeftsbedingungen/ ### Theme ### Name: Astra Child Version: 2.5.4.1598060844 Author URL: https://wpastra.com/about/ Child Theme: ? Parent Theme Name: Astra Parent Theme Version: 3.7.5 Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme WooCommerce Support: ? ### Templates ### Overrides: /www/htdocs/w01ab603/pepperfarmkampot.com/wp-content/plugins/woolentor-addons-pro/wl-woo-templates/cart-elementor.php /www/htdocs/w01ab603/pepperfarmkampot.com/wp-content/plugins/woolentor-addons-pro/wl-woo-templates/form-checkout.php /www/htdocs/w01ab603/pepperfarmkampot.com/wp-content/plugins/woolentor-addons-pro/wl-woo-templates/thankyou.php astra-child/woocommerce/emails/admin-new-order.php astra-child/woocommerce/emails/customer-processing-order.php /www/htdocs/w01ab603/pepperfarmkampot.com/wp-content/plugins/woolentor-addons-pro/wl-woo-templates/form-login.php /www/htdocs/w01ab603/pepperfarmkampot.com/wp-content/plugins/woolentor-addons-pro/wl-woo-templates/my-account.php ### Action Scheduler ### Abgeschlossen: 724 Oldest: 2021-11-18 04:15:03 +0100 Newest: 2021-11-23 02:18:37 +0100 Ausstehend: 4 Oldest: 2021-11-23 08:33:43 +0100 Newest: 2021-11-24 02:18:37 +0100 ### Status report information ### Generated at: 2021-11-23 02:31:40 +01:00
Hi @don-kong,
Thanks for sharing your permalinks settings and your system status.
It appears that you set up
shop
for both the product category base and the product custom base and this can create conflict.I would recommend that you change the product category base to the default
product-category
or even betterprodukt-kategorie
in German.Please kindly refer to our detailed guide on taxonomy permalinks:
https://woocommerce.com/document/permalinks/#section-2
Thanks.
You’re most welcome!
I’m marking this thread as resolved. If you have further questions, feel free to create a new thread.
Cheers
- The topic ‘Links to product pages get redirected to 404’ is closed to new replies.