• Resolved saraeee

    (@saraeee)


    Hi. I want my shop URL be like this:

    Main shop page:
    mysite.com/shoppage
    Category page:
    mysite.com/shoppage/mycategory
    Product page
    mysite.com/shoppage/mycategory/myproduct

    To do so I need the same value for Product category base, Custom base and main shop page slug. This causes Error 404. Can you help me to have this URL structure?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @saraeee

    Thanks for reaching out!

    I understand that you would like to change your shop URL to be something like the structure above.

    To change the Shop Page slug, please go to Pages > Shop > Quick Edit > Slug:

    Please note that using the same value for the product category base, custom base, and main shop page slug might cause conflicts and result in 404 errors.

    To avoid this, you can add a prefix to the product category base, like category or products. For example, you can set the product category base to shoppage/category and the custom base to /shoppage/category/%product_cat%. This will still give you a clean and organized URL structure without causing any issues.

    If you still encounter 404 errors after following these steps, try resetting your permalinks by going to Settings > Permalinks and clicking Save Changes without making any modifications. This will flush the rewrite rules and should resolve any issues.

    Hope this helps!

    Thread Starter saraeee

    (@saraeee)

    Dear @xue28 thank you for your reply.

    Unfortunately I still have problem.

    The setting is as below:

    Main shop page slug is set to: shoppage

    Product category base set to: shoppage/somefixedtext

    Custom base set to: /shoppage/somefixedtext/%product_cat%/

    I saved the changes and also change main page slug from quick edit but I still have the problem and see 404 error. Any idea?

    Hi @saraeee

    I understand that the error still persists even after updating values of your Permalinks.

    Can you please share with us a screenshot of your Permalinks settings under Settings > Permalinks for us to check this further?

    If you don’t already have a screenshot service installed, you can try https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Additionally, for us to investigate your issue further, I’d like to understand your site properly. Please share your System Status Report that you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Thanks!

    Thread Starter saraeee

    (@saraeee)

    Dear @xue28 thank you for such a good support.

    The permalink scrennshot is below:

    https://snipboard.io/3moplJ.jpg

    System stutus report:

    WordPress Environment
    
    WordPress address (URL): https://medafone.com/woo
    Site address (URL): https://medafone.com/woo
    WC Version: ?.?.?
    REST API Version: ?</img> ?.?.?
    WC Blocks Version: ?</img> ?.?.?
    Action Scheduler Version: ?</img> ?.?.?
    Log Directory Writable: ?</img>
    WP Version: ?.?
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: fa_IR
    External object cache: –
    
    Server Environment
    
    Server Info: LiteSpeed
    PHP Version: ?.?.??
    PHP Post Max Size: 128 MB
    PHP Time Limit: ???
    PHP Max Input Vars: ????
    cURL Version: 7.84.0
    OpenSSL/1.1.1p
    
    SUHOSIN Installed: –
    MySQL Version: 10.3.38-MariaDB-cll-lve
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?</img>
    fsockopen/cURL: ?</img>
    SoapClient: ?</img>
    DOMDocument: ?</img>
    GZip: ?</img>
    Multibyte String: ?</img>
    Remote Post: ?</img> wp_remote_post() failed. Contact your hosting provider.
    Remote Get: ?</img> wp_remote_get() failed. Contact your hosting provider.
    
    Database
    
    WC Database Version: ?.?.?
    WC Database Prefix: wpwoo_
    Total Database Size: 49.12MB
    Database Data Size: 40.04MB
    Database Index Size: 9.08MB
    wpwoo_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_actionscheduler_actions: Data: 0.04MB + Index: 0.03MB + Engine MyISAM
    wpwoo_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_actionscheduler_logs: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
    wpwoo_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_e_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_e_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_e_submissions_actions_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_e_submissions_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_options: Data: 6.80MB + Index: 0.06MB + Engine MyISAM
    wpwoo_postmeta: Data: 9.27MB + Index: 3.61MB + Engine MyISAM
    wpwoo_posts: Data: 7.95MB + Index: 0.86MB + Engine MyISAM
    wpwoo_rmp_analytics: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_termmeta: Data: 0.13MB + Index: 0.10MB + Engine MyISAM
    wpwoo_terms: Data: 0.20MB + Index: 0.23MB + Engine MyISAM
    wpwoo_term_relationships: Data: 0.60MB + Index: 1.07MB + Engine MyISAM
    wpwoo_term_taxonomy: Data: 0.12MB + Index: 0.11MB + Engine MyISAM
    wpwoo_usermeta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wpwoo_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_wc_admin_notes: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_admin_note_actions: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wpwoo_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_product_attributes_lookup: Data: 0.43MB + Index: 0.52MB + Engine MyISAM
    wpwoo_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_wc_product_meta_lookup: Data: 0.34MB + Index: 0.42MB + Engine MyISAM
    wpwoo_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfconfig: Data: 2.16MB + Index: 0.01MB + Engine MyISAM
    wpwoo_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wffilemods: Data: 3.95MB + Index: 0.49MB + Engine MyISAM
    wpwoo_wfhits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfissues: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wpwoo_wfknownfilelist: Data: 2.82MB + Index: 0.15MB + Engine MyISAM
    wpwoo_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wflogins: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpwoo_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY
    wpwoo_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpwoo_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wfstatus: Data: 0.12MB + Index: 0.06MB + Engine MyISAM
    wpwoo_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_wpforms_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwoo_yoast_indexable: Data: 4.31MB + Index: 0.63MB + Engine MyISAM
    wpwoo_yoast_indexable_hierarchy: Data: 0.11MB + Index: 0.29MB + Engine MyISAM
    wpwoo_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_yoast_primary_term: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwoo_yoast_seo_links: Data: 0.53MB + Index: 0.29MB + Engine MyISAM
    
    Post Type Counts
    
    acoplw_badges: ?
    album: ?
    attachment: ???
    cartflows_flow: ?
    cartflows_step: ?
    custom_css: ?
    elementor_library: ??
    nav_menu_item: ??
    page: ??
    people: ?
    post: ??
    product: ????
    product_variation: ?
    revision: ?
    saswp: ?
    work: ?
    wp_global_styles: ?
    wp_navigation: ?
    wp_template: ?
    wp_template_part: ?
    wpforms: ?
    xs_review: ?
    
    Security
    
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    
    Active Plugins (8)
    
    Elementor Pro: by Elementor.com – 3.6.4
    Elementor: by Elementor.com – 3.12.1
    Rate my Post - WP Rating System: by Blaz K. – 3.4.1
    Schema & Structured Data for WP & AMP: by Magazine3 – 1.13
    WooCommerce: by Automattic – 7.6.0
    Wordfence Security: by Wordfence – 7.9.2
    Yoast SEO: by Team Yoast – 20.5
    ????? ???? ? ????? ??? ??????: by wpvar.com – 4.3.3
    
    Inactive Plugins (8)
    
    Acowebs Product Labels For Woocommerce: by Acowebs – 1.5.1
    Hello Dolly: by Matt Mullenweg – 1.7.2
    SearchWP Live Ajax Search: by SearchWP
    LLC – 1.7.4
    
    Simple Google reCAPTCHA: by Michal Novák – 4.0
    Starter Templates: by Brainstorm Force – 3.2.1
    WPForms Lite: by WPForms – 1.8.1.2
    WP Rocket: by WP Media – 3.8.8
    Yoast SEO: WooCommerce: by Team Yoast – 13.9
    
    Dropin Plugins (2)
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    
    Settings
    
    API Enabled: ?</img>
    Force SSL: –
    Currency: IRT (?????)
    Currency Position: right_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: ?
    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: –
    Enforce Approved Product Download Directories: ?</img>
    Order datastore: WC_Order_Data_Store_CPT
    
    WC Pages
    
    Shop base: #401 - /shoppage/
    Cart: #97 - /cart/
    Checkout: #98 - /checkout/
    My account: #99 - /my-account/
    Terms and conditions: ?</img> Page not set
    
    Theme
    
    Name: Astra
    Version: ?.?.?
    Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    Child Theme: ?</img> – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?</img>
    
    Templates
    
    Overrides: –
    
    Admin
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: block-editor-feature-enabled
    minified-js
    new-product-management-experience
    product-variation-management
    settings
    
    Daily Cron: ?</img> Next scheduled: 1402-01-26 06:12:38 +00:00
    Options: ?</img>
    Notes: ??
    Onboarding: completed
    
    Action Scheduler
    
    Complete: ??
    Oldest: 2023-03-15 08:56:34 +0000
    Newest: 2023-04-15 04:08:25 +0000
    
    Failed: ??
    Oldest: 2023-03-02 13:08:47 +0000
    Newest: 2023-04-15 04:09:34 +0000
    
    Pending: ?
    Oldest: 2023-04-15 05:59:45 +0000
    Newest: 2023-04-15 05:59:45 +0000
    
    Status report information
    
    Generated at: ????-??-?? ??:??:?? +??:??
    `

    Hi @saraeee

    Thanks for sharing the screenshot, you cannot use the same base URL for category and product links, take a look at this screenshot: https://screencast-o-matic.com/i/c0fb6sVzc6C

    Try to add the different string in product base URL and save the permalink, it will work fine. Take a look at this screenshot: https://screencast-o-matic.com/i/c0fb6MVzc67

    Let me know how that goes!

    Thread Starter saraeee

    (@saraeee)

    Dear @amiralifarooq thank you for your reply. I know it’s not possible to have same base URL for category and product links. But it doesn’t make sense to have different values for this two settings. Is there any change in functions.php or a plugin that allows to have this URL structures?

    Main shop page:
    mysite.com/shoppage
    Category page:
    mysite.com/shoppage/mycategory
    Product page
    mysite.com/shoppage/mycategory/myproduct

    Saif

    (@babylon1999)

    Hello @saraeee,

    But it doesn’t make sense to have different values for this two settings. Is there any change in functions.php or a plugin that allows to have this URL structures?

    I understand that you are searching for an extension to enhance the features of WooCommerce permalinks. ??

    You can check the Custom Permalinks for WooCommerce extension in the WooCommerce store.

    I should note that all extensions sold on WooCommerce.com have a 30-day refund policy. If the product doesn’t work the way you need it or you think another product would work better, we are more than happy to provide a full refund.


    Hope this helps!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Product category base same as Custom base’ is closed to new replies.