• Resolved hassoun

    (@hassoun)


    Hello,

    When I add a menu item (type: product category) and wherever my theme displays links to product categories, I see this URL:

    https://domain.com/shop/?product-category[]=CATEGORY-SLUG

    The problems are that:

    1. The page does not display the category’s products, but instead, displays ALL products

    2. The URL structure does not match with my permalink setting: https://ibb.co/DWX6c3b

    And when I manually browse to:
    https://domain.com/product-category/category-slug

    It works perfectly fine.

    I can’t get the Menu screen to display the actual links.

    I earlier had a problem where WordPress can’t save rules to my .htacces but now everything is fine, I can see that WordPress is writing fine.

    Things I tried:

    1. Flushing all caches including server (apache + nginx), WP Rocket, Redis, and Cloudflare. And of course my browser.
    2. Creating a new Menu
    3. Change permalinks settings to something new then return it to my preferred settings.
    4. Enabled WordPress debugging and I don’t see any errors while creating menus, menu item, or saving permalink settings.

    None helped.

    Any other hints?

    Latest WooComemrce with latest WordPress, PHP version 8

    • This topic was modified 2 years, 11 months ago by hassoun.
Viewing 8 replies - 1 through 8 (of 8 total)
  • @hassoun

    Could you please share a copy of your site’s 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.

    Thread Starter hassoun

    (@hassoun)

    Sure, here you go


    ### WordPress Environment ###

    WordPress address (URL): https://domain.com
    Site address (URL): https://domain.com
    WC Version: 6.0.0
    REST API Version: ? 6.0.0
    WC Blocks Version: ? 6.3.3
    Action Scheduler Version: ? 3.3.0
    WC Admin Version: ? 2.9.4
    Log Directory Writable: ?
    WP Version: 5.8.2
    WP Multisite: –
    WP Memory Limit: 8 GB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 8.0.13
    PHP Post Max Size: 64 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.79.1
    OpenSSL/1.1.1l

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.32-MariaDB
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 6.0.0
    WC Database Prefix: *****_
    Total Database Size: 523.34MB
    Database Data Size: 332.88MB
    Database Index Size: 190.46MB
    *****_woocommerce_sessions: Data: 5.02MB + Index: 0.16MB + Engine InnoDB
    *****_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    *****_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    *****_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_actionscheduler_actions: Data: 1.19MB + Index: 0.55MB + Engine InnoDB
    *****_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_actionscheduler_logs: Data: 0.34MB + Index: 0.28MB + Engine InnoDB
    *****_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_bwfan_abandonedcarts: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    *****_bwfan_automationmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_bwfan_automations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_bwfan_contact_automations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_bwfan_logmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_bwfan_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_bwfan_message_unsubscribe: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    *****_bwfan_syncrecords: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_bwfan_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_bwfan_tasks: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    *****_bwfan_task_claim: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_bwf_actions: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    *****_bwf_action_claim: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_bwf_contact: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    *****_bwf_contact_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_bwf_funnelmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_bwf_funnels: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_bwf_optin_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_bwf_wc_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_cartflows_ca_cart_abandonment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_comments: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    *****_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    *****_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    *****_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_fm_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_cms_nav_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_icl_languages_translations: Data: 0.20MB + Index: 0.17MB + Engine InnoDB
    *****_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_icl_mo_files_domains: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_strings: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    *****_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_string_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_icl_string_positions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_string_translations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_icl_string_urls: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_translate: Data: 0.19MB + Index: 0.02MB + Engine InnoDB
    *****_icl_translate_job: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_icl_translations: Data: 0.50MB + Index: 2.42MB + Engine InnoDB
    *****_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_icl_translation_status: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    *****_imagify_files: Data: 0.05MB + Index: 0.08MB + Engine InnoDB
    *****_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    *****_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    *****_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    *****_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    *****_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_mclean_refs: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    *****_mclean_scan: Data: 0.38MB + Index: 0.08MB + Engine InnoDB
    *****_nx_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_nx_posts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_nx_stats: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_options: Data: 8.14MB + Index: 0.42MB + Engine InnoDB
    *****_postmeta: Data: 78.58MB + Index: 56.53MB + Engine InnoDB
    *****_posts: Data: 23.34MB + Index: 1.28MB + Engine InnoDB
    *****_relevanssi: Data: 3.48MB + Index: 4.19MB + Engine InnoDB
    *****_relevanssi_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_relevanssi_stopwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_reviewx_criterias: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_reviewx_process_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_reviewx_reminder_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_stream: Data: 19.55MB + Index: 19.13MB + Engine InnoDB
    *****_stream_meta: Data: 59.59MB + Index: 90.91MB + Engine InnoDB
    *****_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    *****_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_term_relationships: Data: 0.31MB + Index: 0.20MB + Engine InnoDB
    *****_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    *****_usermeta: Data: 0.30MB + Index: 0.06MB + Engine InnoDB
    *****_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_wccs_conditions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_wccs_condition_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    *****_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    *****_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wc_product_meta_lookup: Data: 0.34MB + Index: 0.55MB + Engine InnoDB
    *****_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_wfacp_stats: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    *****_wfco_connectormeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wfco_connectors: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wfco_report_views: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_wfob_stats: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    *****_wfocu_event: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_wfocu_event_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_wfocu_session: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_wpr_rucss_resources: Data: 114.52MB + Index: 0.20MB + Engine InnoDB
    *****_wpr_rucss_used_css: Data: 0.30MB + Index: 0.05MB + Engine InnoDB
    *****_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    *****_yith_ywpar_points_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    *****_yoast_indexable: Data: 9.28MB + Index: 8.11MB + Engine InnoDB
    *****_yoast_indexable_hierarchy: Data: 1.33MB + Index: 0.73MB + Engine InnoDB
    *****_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    *****_yoast_primary_term: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    *****_yoast_prominent_words: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    *****_yoast_seo_links: Data: 0.14MB + Index: 0.09MB + Engine InnoDB

    ### Post Type Counts ###

    acf-field: 2
    acf-field-group: 1
    attachment: 3785
    awl-labels: 1
    customize_changeset: 350
    elementor_library: 23
    filter-field: 5
    filter-set: 4
    gutenberg_mega_menu: 5
    mailpoet_page: 1
    nav_menu_item: 59
    no: 4
    page: 57
    post: 12
    product: 310
    product_variation: 2136
    revision: 1021
    shop_coupon: 3
    shop_order: 93
    shop_order_refund: 2
    size-chart: 13
    wc_order_status: 9
    wpcf7_contact_form: 1
    wpforms: 1
    yith_wcan_preset: 1

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (39) ###

    Query Monitor: by John Blackbourn – 3.7.1
    WPML Multilingual CMS: by OnTheGoSystems – 4.5.2
    Advanced Custom Fields: by Delicious Brains – 5.11.4
    Akismet Anti-Spam: by Automattic – 4.2.1
    Chawkbazar Theme Helper: by redq – 1.0.0
    Contact Form 7: by Takayuki Miyoshi – 5.5.3
    Elementor Pro: by Elementor.com – 3.5.1
    Elementor: by Elementor.com – 3.5.0
    Essential Addons for Elementor: by WPDeveloper – 4.9.7
    Filter Everything?— WooCoomerce Product & WordPress Filter: by Andrii Stepasiuk – 1.4.5
    WooFunnels Funnel Builder Pro: by BuildWooFunnels – 1.13.5
    WooFunnels Funnel Builder: by BuildWooFunnels – 1.10.0
    Site Kit by Google: by Google – 1.47.0
    Imagify: by WP Media – 1.10
    Kirki Customizer Framework: by David Vongries – 3.1.9
    Relevanssi: by Mikko Saari – 4.14.4
    TaxoPress: by TaxoPress – 3.4.3
    Stream: by XWP – 3.8.2
    Super Web Share: by Super Web Share – 1.4.5
    Product Size Charts Plugin for WooCommerce: by theDotstore – 2.2.1
    WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.13
    Product Feed PRO for WooCommerce: by AdTribes.io – 11.0.2
    Variation Swatches for WooCommerce – Pro: by Emran Ahmed – 1.1.18
    Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.19
    WooCommerce Stripe Gateway: by WooCommerce – 5.9.0
    WooCommerce Menu Cart: by Jeremiah Prummer
    Ewout Fernhout – 2.10.1

    WooCommerce Multilingual: by OnTheGoSystems – 4.12.3
    WooCommerce Order Status Manager: by SkyVerge – 1.13.3
    WooCommerce: by Automattic – 6.0.0
    Yoast SEO Premium: by Team Yoast – 17.5
    Yoast SEO: by Team Yoast – 17.8
    WP SVG images: by KubiQ – 3.6
    WPML CMS Nav: by OnTheGoSystems – 1.5.5
    WPML Media: by OnTheGoSystems – 2.7.0
    WPML String Translation: by OnTheGoSystems – 3.2.0
    Yoast SEO: WooCommerce: by Team Yoast – 14.4
    YITH WooCommerce Frequently Bought Together Premium: by YITH – 1.8.14
    YITH WooCommerce Points and Rewards Premium: by YITH – 2.1.2
    YITH WooCommerce Wishlist: by YITH – 3.3.0

    ### Inactive Plugins (12) ###

    Autonami Marketing Automations For WordPress: by BuildWooFunnels – 2.0.8
    bunny.net: by bunny.net – 1.0.8
    Gutenberg Mega Menu: by RedQ,Inc – 1.0.0
    Hotjar: by Hotjar – 1.0.12
    Jetpack: by Automattic – 10.4
    Media Cleaner: by Jordy Meow – 6.2.7
    One Click Demo Import: by OCDI – 3.0.2
    Powerkit: by Code Supply Co. – 2.5.8.1
    Redis Object Cache: by Till Krüss – 2.0.22
    RedQ WooCommerce Quick View: by RedQ,Inc – 1.0.2
    WP Rocket: by WP Media – 3.10.3
    YITH WooCommerce Ajax Product Filter: by YITH – 4.4.0

    ### Dropin Plugins (2) ###

    advanced-cache.php: advanced-cache.php
    db.php: Query Monitor Database Class

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: AED (?.?)
    Currency Position: left_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)

    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 base: #7 – shop/
    Cart: #8 – cart/
    Checkout: #9 – checkout/
    My account: #10 – my-account/
    Terms and conditions: #5312 – purchase-policy/

    ### Theme ###

    Name: Chawkbazar Child
    Version: (update to version 0 is available)
    Author URL:
    Child Theme: ?
    Parent Theme Name: Chawkbazar
    Parent Theme Version: 1.0.4
    Parent Theme Author URL: https://redq.io
    WooCommerce Support: ?

    ### Templates ###

    Archive Template: Your theme has a woocommerce.php file
    you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.

    Overrides: chawkbazar/woocommerce/cart/cart.php
    chawkbazar/woocommerce/cart/mini-cart.php
    chawkbazar/woocommerce/checkout/form-checkout.php
    chawkbazar/woocommerce/global/form-login.php
    chawkbazar/woocommerce/loop/result-count.php
    chawkbazar/woocommerce/myaccount/dashboard.php
    chawkbazar/woocommerce/myaccount/form-login.php
    chawkbazar/woocommerce/myaccount/navigation.php
    chawkbazar/woocommerce/product-searchform.php
    chawkbazar-child/woocommerce/single-product/add-to-cart/variable.php
    chawkbazar-child/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    chawkbazar-child/woocommerce/single-product/product-image.php
    chawkbazar-child/woocommerce/single-product/product-thumbnails.php
    chawkbazar/woocommerce/single-product/rating.php
    chawkbazar/woocommerce/single-product/review.php

    ### Action Scheduler ###

    Canceled: 3
    Oldest: 2021-11-21 12:24:21 +0400
    Newest: 2021-11-27 18:42:13 +0400

    Complete: 1,410
    Oldest: 2021-11-16 13:12:48 +0400
    Newest: 2021-12-17 11:20:18 +0400

    Failed: 1
    Oldest: 2021-11-16 14:12:42 +0400
    Newest: 2021-11-16 14:12:42 +0400

    Pending: 5
    Oldest: 2021-12-17 17:47:34 +0400
    Newest: 2021-12-20 18:51:40 +0400

    ### Status report information ###

    Generated at: 2021-12-17 12:14:35 +04:00
    `

    Thread Starter hassoun

    (@hassoun)

    I tried the debugger found here:

    https://gist.github.com/yunusga/33cf0ba9e311e12df4046722e93d4123#file-gistfile1-aw

    While I am on the wrong URL shop/?product-category[]=EXAMPLE, I get to see:

    
    permalink structure
    '/%category%/%postname%/'
    page permastruct
    '%pagename%'
    matched rule and query
    'shop/?$'
    matched query
    'post_type=product'
    request
    'shop'
    

    I noticed that the request does not contain the category. And the page displays all products.

    And when I am on the right URL, /product-category/EXAMPLE , I get to see this:

    
    permalink structure
    '/%category%/%postname%/'
    page permastruct
    '%pagename%'
    matched rule and query
    'product-category/(.+?)/?$'
    matched query
    'product_cat=best-offers'
    request
    'product-category/EXAMPLE'
    

    And here are my rewrite rules:

    
    array (
      '^wc-auth/v([1]{1})/(.*)?' => 'index.php?wc-auth-version=$matches[1]&wc-auth-route=$matches[2]',
      '^wc-api/v([1-3]{1})/?$' => 'index.php?wc-api-version=$matches[1]&wc-api-route=/',
      '^wc-api/v([1-3]{1})(.*)?' => 'index.php?wc-api-version=$matches[1]&wc-api-route=$matches[2]',
      'sitemap_index\\.xml$' => 'index.php?sitemap=1',
      '([^/]+?)-sitemap([0-9]+)?\\.xml$' => 'index.php?sitemap=$matches[1]&sitemap_n=$matches[2]',
      '([a-z]+)?-?sitemap\\.xsl$' => 'index.php?yoast-sitemap-xsl=$matches[1]',
      'shop/?$' => 'index.php?post_type=product',
      'shop/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=product&feed=$matches[1]',
      'shop/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_type=product&feed=$matches[1]',
      'shop/page/([0-9]{1,})/?$' => 'index.php?post_type=product&paged=$matches[1]',
      '^wp-json/?$' => 'index.php?rest_route=/',
      '^wp-json/(.*)?' => 'index.php?rest_route=/$matches[1]',
      '^index.php/wp-json/?$' => 'index.php?rest_route=/',
      '^index.php/wp-json/(.*)?' => 'index.php?rest_route=/$matches[1]',
      '^wp-sitemap\\.xml$' => 'index.php?sitemap=index',
      '^wp-sitemap\\.xsl$' => 'index.php?sitemap-stylesheet=sitemap',
      '^wp-sitemap-index\\.xsl$' => 'index.php?sitemap-stylesheet=index',
      '^wp-sitemap-([a-z]+?)-([a-z\\d_-]+?)-(\\d+?)\\.xml$' => 'index.php?sitemap=$matches[1]&sitemap-subtype=$matches[2]&paged=$matches[3]',
      '^wp-sitemap-([a-z]+?)-(\\d+?)\\.xml$' => 'index.php?sitemap=$matches[1]&paged=$matches[2]',
      '^\\.well-known\\/apple-developer-merchantid-domain-association$' => 'index.php?apple-developer-merchantid-domain-association=1',
      'topics/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
      'topics/(.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
      'topics/(.+?)/embed/?$' => 'index.php?category_name=$matches[1]&embed=true',
      'topics/(.+?)/page/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&paged=$matches[2]',
      'topics/(.+?)/wc-api(/(.*))?/?$' => 'index.php?category_name=$matches[1]&wc-api=$matches[3]',
      'topics/(.+?)/?$' => 'index.php?category_name=$matches[1]',
      'keywords/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?tag=$matches[1]&feed=$matches[2]',
      'keywords/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?tag=$matches[1]&feed=$matches[2]',
      'keywords/([^/]+)/embed/?$' => 'index.php?tag=$matches[1]&embed=true',
      'keywords/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?tag=$matches[1]&paged=$matches[2]',
      'keywords/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?tag=$matches[1]&wc-api=$matches[3]',
      'keywords/([^/]+)/?$' => 'index.php?tag=$matches[1]',
      'type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_format=$matches[1]&feed=$matches[2]',
      'type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?post_format=$matches[1]&feed=$matches[2]',
      'type/([^/]+)/embed/?$' => 'index.php?post_format=$matches[1]&embed=true',
      'type/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?post_format=$matches[1]&paged=$matches[2]',
      'type/([^/]+)/?$' => 'index.php?post_format=$matches[1]',
      'e-landing-page/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      'e-landing-page/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      'e-landing-page/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'e-landing-page/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'e-landing-page/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      'e-landing-page/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      'e-landing-page/([^/]+)/embed/?$' => 'index.php?e-landing-page=$matches[1]&embed=true',
      'e-landing-page/([^/]+)/trackback/?$' => 'index.php?e-landing-page=$matches[1]&tb=1',
      'e-landing-page/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?e-landing-page=$matches[1]&paged=$matches[2]',
      'e-landing-page/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?e-landing-page=$matches[1]&cpage=$matches[2]',
      'e-landing-page/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?e-landing-page=$matches[1]&wc-api=$matches[3]',
      'e-landing-page/[^/]+/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      'e-landing-page/[^/]+/attachment/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      'e-landing-page/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?e-landing-page=$matches[1]&page=$matches[2]',
      'e-landing-page/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      'e-landing-page/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      'e-landing-page/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'e-landing-page/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'e-landing-page/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      'e-landing-page/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      'product-category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?product_cat=$matches[1]&feed=$matches[2]',
      'product-category/(.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?product_cat=$matches[1]&feed=$matches[2]',
      'product-category/(.+?)/embed/?$' => 'index.php?product_cat=$matches[1]&embed=true',
      'product-category/(.+?)/page/?([0-9]{1,})/?$' => 'index.php?product_cat=$matches[1]&paged=$matches[2]',
      'product-category/(.+?)/?$' => 'index.php?product_cat=$matches[1]',
      'product-tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?product_tag=$matches[1]&feed=$matches[2]',
      'product-tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?product_tag=$matches[1]&feed=$matches[2]',
      'product-tag/([^/]+)/embed/?$' => 'index.php?product_tag=$matches[1]&embed=true',
      'product-tag/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?product_tag=$matches[1]&paged=$matches[2]',
      'product-tag/([^/]+)/?$' => 'index.php?product_tag=$matches[1]',
      'color/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pa_color=$matches[1]&feed=$matches[2]',
      'color/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pa_color=$matches[1]&feed=$matches[2]',
      'color/([^/]+)/embed/?$' => 'index.php?pa_color=$matches[1]&embed=true',
      'color/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?pa_color=$matches[1]&paged=$matches[2]',
      'color/([^/]+)/?$' => 'index.php?pa_color=$matches[1]',
      'shop/.+?/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      'shop/.+?/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      'shop/.+?/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'shop/.+?/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'shop/.+?/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      'shop/.+?/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      'shop/(.+?)/([^/]+)/embed/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&embed=true',
      'shop/(.+?)/([^/]+)/trackback/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&tb=1',
      'shop/(.+?)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&feed=$matches[3]',
      'shop/(.+?)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&feed=$matches[3]',
      'shop/(.+?)/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&paged=$matches[3]',
      'shop/(.+?)/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&cpage=$matches[3]',
      'shop/(.+?)/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&wc-api=$matches[4]',
      'shop/.+?/[^/]+/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      'shop/.+?/[^/]+/attachment/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      'shop/(.+?)/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?product_cat=$matches[1]&product=$matches[2]&page=$matches[3]',
      'shop/.+?/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      'shop/.+?/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      'shop/.+?/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'shop/.+?/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'shop/.+?/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      'shop/.+?/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      'cbh_brand/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?cbh_brand=$matches[1]&feed=$matches[2]',
      'cbh_brand/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?cbh_brand=$matches[1]&feed=$matches[2]',
      'cbh_brand/([^/]+)/embed/?$' => 'index.php?cbh_brand=$matches[1]&embed=true',
      'cbh_brand/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?cbh_brand=$matches[1]&paged=$matches[2]',
      'cbh_brand/([^/]+)/?$' => 'index.php?cbh_brand=$matches[1]',
      'cbh_price/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?cbh_price=$matches[1]&feed=$matches[2]',
      'cbh_price/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?cbh_price=$matches[1]&feed=$matches[2]',
      'cbh_price/([^/]+)/embed/?$' => 'index.php?cbh_price=$matches[1]&embed=true',
      'cbh_price/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?cbh_price=$matches[1]&paged=$matches[2]',
      'cbh_price/([^/]+)/?$' => 'index.php?cbh_price=$matches[1]',
      'media_tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?media_tag=$matches[1]&feed=$matches[2]',
      'media_tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?media_tag=$matches[1]&feed=$matches[2]',
      'media_tag/([^/]+)/embed/?$' => 'index.php?media_tag=$matches[1]&embed=true',
      'media_tag/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?media_tag=$matches[1]&paged=$matches[2]',
      'media_tag/([^/]+)/?$' => 'index.php?media_tag=$matches[1]',
      'wp_stream_alerts/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      'wp_stream_alerts/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      'wp_stream_alerts/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'wp_stream_alerts/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'wp_stream_alerts/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      'wp_stream_alerts/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      'wp_stream_alerts/([^/]+)/embed/?$' => 'index.php?wp_stream_alerts=$matches[1]&embed=true',
      'wp_stream_alerts/([^/]+)/trackback/?$' => 'index.php?wp_stream_alerts=$matches[1]&tb=1',
      'wp_stream_alerts/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?wp_stream_alerts=$matches[1]&paged=$matches[2]',
      'wp_stream_alerts/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?wp_stream_alerts=$matches[1]&cpage=$matches[2]',
      'wp_stream_alerts/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?wp_stream_alerts=$matches[1]&wc-api=$matches[3]',
      'wp_stream_alerts/[^/]+/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      'wp_stream_alerts/[^/]+/attachment/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      'wp_stream_alerts/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?wp_stream_alerts=$matches[1]&page=$matches[2]',
      'wp_stream_alerts/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      'wp_stream_alerts/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      'wp_stream_alerts/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'wp_stream_alerts/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      'wp_stream_alerts/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      'wp_stream_alerts/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      'robots\\.txt$' => 'index.php?robots=1',
      'favicon\\.ico$' => 'index.php?favicon=1',
      '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\\.php$' => 'index.php?feed=old',
      '.*wp-app\\.php(/.*)?$' => 'index.php?error=403',
      '.*wp-register.php$' => 'index.php?register=true',
      'feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]',
      '(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]',
      'embed/?$' => 'index.php?&embed=true',
      'page/?([0-9]{1,})/?$' => 'index.php?&paged=$matches[1]',
      'comment-page-([0-9]{1,})/?$' => 'index.php?&page_id=2311&cpage=$matches[1]',
      'wc-api(/(.*))?/?$' => 'index.php?&wc-api=$matches[2]',
      'comments/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]&withcomments=1',
      'comments/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]&withcomments=1',
      'comments/embed/?$' => 'index.php?&embed=true',
      'comments/wc-api(/(.*))?/?$' => 'index.php?&wc-api=$matches[2]',
      'search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?s=$matches[1]&feed=$matches[2]',
      'search/(.+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?s=$matches[1]&feed=$matches[2]',
      'search/(.+)/embed/?$' => 'index.php?s=$matches[1]&embed=true',
      'search/(.+)/page/?([0-9]{1,})/?$' => 'index.php?s=$matches[1]&paged=$matches[2]',
      'search/(.+)/wc-api(/(.*))?/?$' => 'index.php?s=$matches[1]&wc-api=$matches[3]',
      'search/(.+)/?$' => 'index.php?s=$matches[1]',
      'author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?author_name=$matches[1]&feed=$matches[2]',
      'author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?author_name=$matches[1]&feed=$matches[2]',
      'author/([^/]+)/embed/?$' => 'index.php?author_name=$matches[1]&embed=true',
      'author/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?author_name=$matches[1]&paged=$matches[2]',
      'author/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?author_name=$matches[1]&wc-api=$matches[3]',
      'author/([^/]+)/?$' => 'index.php?author_name=$matches[1]',
      '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]',
      '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]',
      '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/embed/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&embed=true',
      '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]',
      '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/wc-api(/(.*))?/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&wc-api=$matches[5]',
      '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]',
      '([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
      '([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]',
      '([0-9]{4})/([0-9]{1,2})/embed/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&embed=true',
      '([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]',
      '([0-9]{4})/([0-9]{1,2})/wc-api(/(.*))?/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]&wc-api=$matches[4]',
      '([0-9]{4})/([0-9]{1,2})/?$' => 'index.php?year=$matches[1]&monthnum=$matches[2]',
      '([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
      '([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?year=$matches[1]&feed=$matches[2]',
      '([0-9]{4})/embed/?$' => 'index.php?year=$matches[1]&embed=true',
      '([0-9]{4})/page/?([0-9]{1,})/?$' => 'index.php?year=$matches[1]&paged=$matches[2]',
      '([0-9]{4})/wc-api(/(.*))?/?$' => 'index.php?year=$matches[1]&wc-api=$matches[3]',
      '([0-9]{4})/?$' => 'index.php?year=$matches[1]',
      '.?.+?/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      '.?.+?/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      '.?.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      '.?.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      '.?.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      '.?.+?/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      '(.?.+?)/embed/?$' => 'index.php?pagename=$matches[1]&embed=true',
      '(.?.+?)/trackback/?$' => 'index.php?pagename=$matches[1]&tb=1',
      '(.?.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pagename=$matches[1]&feed=$matches[2]',
      '(.?.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?pagename=$matches[1]&feed=$matches[2]',
      '(.?.+?)/page/?([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&paged=$matches[2]',
      '(.?.+?)/comment-page-([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&cpage=$matches[2]',
      '(.?.+?)/wc-api(/(.*))?/?$' => 'index.php?pagename=$matches[1]&wc-api=$matches[3]',
      '(.?.+?)/order-pay(/(.*))?/?$' => 'index.php?pagename=$matches[1]&order-pay=$matches[3]',
      '(.?.+?)/order-received(/(.*))?/?$' => 'index.php?pagename=$matches[1]&order-received=$matches[3]',
      '(.?.+?)/orders(/(.*))?/?$' => 'index.php?pagename=$matches[1]&orders=$matches[3]',
      '(.?.+?)/view-order(/(.*))?/?$' => 'index.php?pagename=$matches[1]&view-order=$matches[3]',
      '(.?.+?)/downloads(/(.*))?/?$' => 'index.php?pagename=$matches[1]&downloads=$matches[3]',
      '(.?.+?)/edit-account(/(.*))?/?$' => 'index.php?pagename=$matches[1]&edit-account=$matches[3]',
      '(.?.+?)/edit-address(/(.*))?/?$' => 'index.php?pagename=$matches[1]&edit-address=$matches[3]',
      '(.?.+?)/payment-methods(/(.*))?/?$' => 'index.php?pagename=$matches[1]&payment-methods=$matches[3]',
      '(.?.+?)/lost-password(/(.*))?/?$' => 'index.php?pagename=$matches[1]&lost-password=$matches[3]',
      '(.?.+?)/customer-logout(/(.*))?/?$' => 'index.php?pagename=$matches[1]&customer-logout=$matches[3]',
      '(.?.+?)/add-payment-method(/(.*))?/?$' => 'index.php?pagename=$matches[1]&add-payment-method=$matches[3]',
      '(.?.+?)/delete-payment-method(/(.*))?/?$' => 'index.php?pagename=$matches[1]&delete-payment-method=$matches[3]',
      '(.?.+?)/set-default-payment-method(/(.*))?/?$' => 'index.php?pagename=$matches[1]&set-default-payment-method=$matches[3]',
      '(.?.+?)/my-points(/(.*))?/?$' => 'index.php?pagename=$matches[1]&my-points=$matches[3]',
      '.?.+?/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      '.?.+?/attachment/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      '(.?.+?)(?:/([0-9]+))?/?$' => 'index.php?pagename=$matches[1]&page=$matches[2]',
      '.+?/[^/]+/attachment/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      '.+?/[^/]+/attachment/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      '.+?/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      '.+?/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      '.+?/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      '.+?/[^/]+/attachment/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      '(.+?)/([^/]+)/embed/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&embed=true',
      '(.+?)/([^/]+)/trackback/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&tb=1',
      '(.+?)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]',
      '(.+?)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]',
      '(.+?)/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&paged=$matches[3]',
      '(.+?)/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&cpage=$matches[3]',
      '(.+?)/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&wc-api=$matches[4]',
      '.+?/[^/]+/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      '.+?/[^/]+/attachment/([^/]+)/wc-api(/(.*))?/?$' => 'index.php?attachment=$matches[1]&wc-api=$matches[3]',
      '(.+?)/([^/]+)(?:/([0-9]+))?/?$' => 'index.php?category_name=$matches[1]&name=$matches[2]&page=$matches[3]',
      '.+?/[^/]+/([^/]+)/?$' => 'index.php?attachment=$matches[1]',
      '.+?/[^/]+/([^/]+)/trackback/?$' => 'index.php?attachment=$matches[1]&tb=1',
      '.+?/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      '.+?/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
      '.+?/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => 'index.php?attachment=$matches[1]&cpage=$matches[2]',
      '.+?/[^/]+/([^/]+)/embed/?$' => 'index.php?attachment=$matches[1]&embed=true',
      '(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
      '(.+?)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?category_name=$matches[1]&feed=$matches[2]',
      '(.+?)/embed/?$' => 'index.php?category_name=$matches[1]&embed=true',
      '(.+?)/page/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&paged=$matches[2]',
      '(.+?)/comment-page-([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&cpage=$matches[2]',
      '(.+?)/wc-api(/(.*))?/?$' => 'index.php?category_name=$matches[1]&wc-api=$matches[3]',
      '(.+?)/?$' => 'index.php?category_name=$matches[1]',
    )
    

    Does this help?

    Mirko P.

    (@rainfallnixfig)

    Hi @hassoun,

    Can you go to WP dashboard > Settings > Permalinks and click on “Save Changes” at the bottom of the page without actually making any change?

    If it still doesn’t work, there may be a conflict, try to switch the product permalinks to “Default” and save changes.

    Let us know how it goes.

    Thread Starter hassoun

    (@hassoun)

    I did that several times actually.

    And in each time, I changed a letter or two, saved, remove the extra letters then saved again.. To ensure there was a change

    Thread Starter hassoun

    (@hassoun)

    Some updates:

    1. Flushed all rewrite rules found here:
    _options' WHERE 'option_name' = 'rewrite_rules'

    2. I created a page to display all categories using shortcodes, and as expected, the categories had the wrong URL structure.

    3. I noticed that even product-tag has a wrong structure (found it in the product summary), the page showed this link:
    domain.com/?product_tag=hand-bags

    But the products loaded correctly. Also the pretty link (/product-tag/hand-bags) loaded the same products correctly.

    I noticed for product-tag the base /shop was not added unlike for the product category.

    4. As a temporary fix, could you help me write a .htaccess rewrite rule?

    To redirect from
    ?product-category[]=(.*)
    to
    /product-category/$1

    I could not get the parameter to pass correctly.

    • This reply was modified 2 years, 11 months ago by hassoun.
    Mirko P.

    (@rainfallnixfig)

    Hi there,

    Thanks for the updates!

    As a temporary fix, could you help me write a .htaccess rewrite rule?

    You can take a look at the tutorials below. If you need more help with this, I’d recommend visiting the WooCommerce Facebook Community group or the WooCommerce Community Slack channels.

    This is where open-source developers for WooCommerce and server-side experts hang out, and they’re in a better position to help you out.

    https://mediatemple.net/community/products/dv/204643270/.htaccess-rewrite-rules
    https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file-

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Product Category URL does not match Permalink settings’ is closed to new replies.