Permalink
-
Hi,
I have a headache to achieve a simple permalink form like this:
site.com/shop/category/product
I make a custom structure with /%category%/%postname%/
I add a custom base in additional options: “shop”
then I add a custom base in products permalink: /%product_cat%/.
Doesn`t works.
I try every combination but I only have 404, or the “shop” duplicated in breadcrumb.
How can I solve it?
Thanks
-
Howdy!
If you’re trying to set the product permalinks like this:
site.com/shop/category/productYou should be able to set this under
Settings > Permalinks:Have you tried that? If so, do you have any caching plugins or server-side caching setup for your site? After making the change, try flushing the caching to see if that helps.
Also, the product custom base should not conflict with the taxonomy permalink bases. If you set the product base to ‘shop’ for example, you should not set the product category base to ‘shop’ too as this will not be unique and will conflict. WordPress requires something unique so it can distinguish categories from products:
Hi Zack,
thanks for your reply.
I tried and I achieved it on the product page, but with the “Shop” duplicated on the breadcrumb.(screenshot)
And the category link still ” product-category/category-name”.
(screenshot)Is not possible to have “shop/category/” for the category and “shop/category/product” for the product?
Thank you!
Howdy @pianob!
Can you go to
Settings > Permalinksand send a screenshot showing all permalink settings on that page?I’d like to see how you currently have things setup. Thanks!
Hi Zach,
here the screenshots of the permalink settings:
permalink 1
permalink 2
permalink 3Thanks for the support!
Thanks!
I tried the same settings, but in English, and had no issues.
Can you go to
WooCommerce > Status > Toolsand click the “Regenerate” button here and let that run:Then test to see if it works.
If not, can you send 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.Also, if you could do to
WooCommerce > Status > Toolsand check the logs for any “fatal errors”, let us know if it mentions anything specific? Thanks!Hi Zach,
I run the regenerate lookup table without success.I check the logs and I don’t have any fatal errors.
Here the system report:
### WordPress Environment ###WordPress address (URL): https://alfa.piccolecosegenova.com
Site address (URL): https://alfa.piccolecosegenova.com
WC Version: 3.6.4
Log Directory Writable: ✔
WP Version: 5.2.1
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: it_IT
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 7.2.17
PHP Post Max Size: 256 MB
PHP Time Limit: 300
PHP Max Input Vars: 1000
cURL Version: 7.29.0
NSS/3.36SUHOSIN Installed: –
MySQL Version: 5.5.5-10.0.38-MariaDB
Max Upload Size: 128 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔### Database ###
WC Database Version: 3.6.4
WC Database Prefix: IFcqsp0_
MaxMind GeoIP Database: ✔
Dimensione totale database: 8.90MB
Dimensione dati database: 7.49MB
Dimensione indice database: 1.41MB
IFcqsp0_woocommerce_sessions: Dati: 0.01MB + Indice: 0.00MB
IFcqsp0_woocommerce_api_keys: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_attribute_taxonomies: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_downloadable_product_permissions: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_order_items: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_order_itemmeta: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_tax_rates: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_tax_rate_locations: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_shipping_zones: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_shipping_zone_locations: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_shipping_zone_methods: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_payment_tokens: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_payment_tokenmeta: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_woocommerce_log: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_commentmeta: Dati: 0.02MB + Indice: 0.03MB
IFcqsp0_comments: Dati: 0.02MB + Indice: 0.09MB
IFcqsp0_duplicator_packages: Dati: 0.02MB + Indice: 0.02MB
IFcqsp0_ewwwio_images: Dati: 0.06MB + Indice: 0.04MB
IFcqsp0_ewwwio_queue: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_links: Dati: 0.02MB + Indice: 0.02MB
IFcqsp0_options: Dati: 2.22MB + Indice: 0.06MB
IFcqsp0_postmeta: Dati: 0.19MB + Indice: 0.19MB
IFcqsp0_posts: Dati: 1.52MB + Indice: 0.09MB
IFcqsp0_revslider_css: Dati: 0.09MB + Indice: 0.00MB
IFcqsp0_revslider_layer_animations: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_revslider_navigations: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_revslider_sliders: Dati: 0.01MB + Indice: 0.00MB
IFcqsp0_revslider_slides: Dati: 0.03MB + Indice: 0.00MB
IFcqsp0_revslider_static_slides: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_termmeta: Dati: 0.02MB + Indice: 0.03MB
IFcqsp0_terms: Dati: 0.02MB + Indice: 0.03MB
IFcqsp0_term_relationships: Dati: 0.02MB + Indice: 0.02MB
IFcqsp0_term_taxonomy: Dati: 0.02MB + Indice: 0.03MB
IFcqsp0_usermeta: Dati: 0.05MB + Indice: 0.03MB
IFcqsp0_users: Dati: 0.02MB + Indice: 0.05MB
IFcqsp0_wc_download_log: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wc_product_meta_lookup: Dati: 0.02MB + Indice: 0.09MB
IFcqsp0_wc_webhooks: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfblockediplog: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfblocks7: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfconfig: Dati: 0.38MB + Indice: 0.01MB
IFcqsp0_wfcrawlers: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wffilechanges: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wffilemods: Dati: 1.70MB + Indice: 0.38MB
IFcqsp0_wfhits: Dati: 0.02MB + Indice: 0.00MB
IFcqsp0_wfhoover: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfissues: Dati: 0.00MB + Indice: 0.01MB
IFcqsp0_wfknownfilelist: Dati: 0.86MB + Indice: 0.11MB
IFcqsp0_wflivetraffichuman: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wflocs: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wflogins: Dati: 0.01MB + Indice: 0.00MB
IFcqsp0_wfls_2fa_secrets: Dati: 0.02MB + Indice: 0.02MB
IFcqsp0_wfls_settings: Dati: 0.02MB + Indice: 0.00MB
IFcqsp0_wfnotifications: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfpendingissues: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfreversecache: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfsnipcache: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wfstatus: Dati: 0.07MB + Indice: 0.04MB
IFcqsp0_wftrafficrates: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_campaign: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_campaign_list: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_custom_field: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_email: Dati: 0.03MB + Indice: 0.00MB
IFcqsp0_wysija_email_user_stat: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_email_user_url: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_form: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_list: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_queue: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_subscriber_ips: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_url: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_url_mail: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_user: Dati: 0.00MB + Indice: 0.01MB
IFcqsp0_wysija_user_field: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_user_history: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_wysija_user_list: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_yith_wcwl: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_yith_wcwl_lists: Dati: 0.00MB + Indice: 0.01MB
IFcqsp0_yoast_seo_links: Dati: 0.00MB + Indice: 0.00MB
IFcqsp0_yoast_seo_meta: Dati: 0.00MB + Indice: 0.00MB### Post Type Counts ###
attachment: 13
ct_size_guide: 2
customize_changeset: 3
mc4wp-form: 1
nav_menu_item: 27
page: 17
post: 2
product: 4
product_variation: 12
revision: 370
saswp: 1
scheduled-action: 24
shop_order: 2
slider: 1
wpcf7_contact_form: 1
wysijap: 1### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔### Active Plugins (15) ###
Autoptimize: by Frank Goossens (futtta) – 2.5.1
Duplicator: by Snap Creek – 1.3.14
Vitrine Shortcodes: by EpicoMedia – 2.1
EWWW Image Optimizer: by Exactly WWW – 4.8.0
WPBakery Page Builder: by Michael M – WPBakery.com – 6.0.2
Loco Translate: by Tim Whitlock – 2.3.0
Really Simple SSL: by Rogier Lankhorst
Mark Wolters – 3.1.5Revolution Slider: by ThemePunch – 5.4.8
W3 Total Cache: by Frederick Townes – 0.9.7.5
WooCommerce: by Automattic – 3.6.4
Wordfence Security: by Wordfence – 7.3.3
Yoast SEO: by Team Yoast – 11.4 – Non testato con la versione attiva di WooCommerce
YITH WooCommerce Compare: by YITH – 2.3.12
YITH WooCommerce Order Tracking: by YITH – 1.2.8
YITH WooCommerce Wishlist: by YITH – 2.2.10### Inactive Plugins (11) ###
Akismet Anti-Spam: by Automattic – 4.1.2
AMP: by AMP Project Contributors – 1.1.3
Autoptimize CriticalCSS.com Power-Up: by Deny Dias & Optimizing Matters – 1.15.2
Contact Form 7: by Takayuki Miyoshi – 5.1.3
createIT Size Guide Plugin: by createIT – 2.7 – Non testato con la versione attiva di WooCommerce
Custom Product Tabs for WooCommerce: by YIKES
Inc. – 1.6.10Envato Market: by Envato – 2.0.1
EpicoMedia core: by EpicoMedia – 2.1
Mailchimp for WordPress: by ibericode – 4.5.2
MailPoet 2: by MailPoet – 2.11
Schema & Structured Data for WP: by Magazine3 – 1.8.6### Dropin Plugins (2) ###
advanced-cache.php: advanced-cache.php
maintenance.php: maintenance.php### Settings ###
API Enabled: –
Force SSL: ✔
Currency: EUR (€)
Currency Position: left
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 base: #513 – /shop/
Carrello: #76 – /carrello/
Cassa: #78 – /checkout/
Il mio account: #80 – /il-mio-account/
Termini e condizioni: #82 – /termini-e-condizioni/### Theme ###
Name: Vitrine Child
Version: 1.0.1498974811
Author URL: http://www.Epicomedia.com
Child Theme: ✔
Parent Theme Name: Vitrine
Parent Theme Version: 4.7
Parent Theme Author URL: http://www.Epicomedia.com
WooCommerce Support: ✔### Templates ###
Archive Template: Il tuo tema ha il file woocommerce.php
non potrai sovrascrivere il template personalizzato woocommerce/archive-product.php poiché woocommerce.php ha priorità su archive-product.php. Questo serve a prevenire problemi di visualizzazione.Overrides: vitrine/woocommerce/cart/cart-empty.php
vitrine/woocommerce/cart/cart-shipping.php
vitrine/woocommerce/cart/cart.php
vitrine/woocommerce/cart/cross-sells.php
vitrine/woocommerce/cart/mini-cart.php
vitrine/woocommerce/checkout/form-billing.php
vitrine/woocommerce/checkout/form-checkout.php
vitrine/woocommerce/checkout/form-login.php
vitrine/woocommerce/checkout/form-shipping.php
vitrine/woocommerce/content-product.php
vitrine/woocommerce/content-product_cat.php
vitrine/woocommerce/content-single-product.php
vitrine/woocommerce/content-widget-product.php
vitrine/woocommerce/global/breadcrumb.php
vitrine/woocommerce/global/form-login.php
vitrine/woocommerce/global/quantity-input.php
vitrine/woocommerce/loop/add-to-cart.php
vitrine/woocommerce/loop/loop-start.php
vitrine/woocommerce/loop/no-products-found.php
vitrine/woocommerce/myaccount/form-login.php
vitrine/woocommerce/myaccount/my-account.php
vitrine/woocommerce/myaccount/navigation.php
vitrine/woocommerce/product-searchform.php
vitrine/woocommerce/single-product/add-to-cart/external.php
vitrine/woocommerce/single-product/add-to-cart/grouped.php
vitrine/woocommerce/single-product/add-to-cart/simple.php
vitrine/woocommerce/single-product/add-to-cart/variable.php
vitrine/woocommerce/single-product/meta.php
vitrine/woocommerce/single-product/price.php
vitrine/woocommerce/single-product/product-image.php
vitrine/woocommerce/single-product/product-thumbnails.php
vitrine/woocommerce/single-product/rating.php
vitrine/woocommerce/single-product/related.php
vitrine/woocommerce/single-product/tabs/additional-information.php
vitrine/woocommerce/single-product/tabs/description.php
vitrine/woocommerce/single-product/tabs/tabs.php
vitrine/woocommerce/single-product/up-sells.php
vitrine/woocommerce/single-product-reviews.php### Action Scheduler ###
Complete: 24
Oldest: 2019-06-10 12:31:14 +0000
Newest: 2019-06-13 16:54:31 +0000Pending: 0
Oldest: –
Newest: –Canceled: 0
Oldest: –
Newest: –In-progress: 0
Oldest: –
Newest: –Failed: 0
Oldest: –
Newest: –
Thanks for your patienceThanks for that info!
The only other thing I could think of is that it may be a theme or plugin conflict, and you can troubleshoot that by following the information here:
https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4
Hi there,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
The topic ‘Permalink’ is closed to new replies.