- 1 Custom Permalinks for WooCommerce
- 1.1 Go to WooCommerce > Settings > Custom Permalinks. ↑ Back to top
- 1.2 Configurez les permaliens des produits. ↑ Haut de page
- 1.3 Set up category permalinks. ↑ Back to top
- 1.4 Include /shop/ base ↑ Back to top
- 1.5 Replace product slug w/ SKU ↑ Back to top
- 1.6 Add extensions after the slug (.html, .htm, .php) ↑ Back to top
- 1.7 Advanced settings ↑ Back to top
- 1.8 Sitemap ↑ Back to top
- 1.9 WooCommerce Payments
- 1.10 Product Condition for WooCommerce
- 2 How do I change the permalink structure?
- 3 Video How to change permalink in wordpress
- Documentation /
- Custom Permalinks for WooCommerce
¿How to eliminate the base of products from the URL in WooCommerce?
1. Download custom permalinks for WooCommerce from the WooCommerce marketplace. 2. Go to WooCommerce > Configuration > Liens permanents personnalisés. 3. In the ” Product permalinks ” section, choose ” Product slug only ” or ” Product slug with the number of the category” if you want to include the category slug in the URL.
How to strip product category base from WooCommerce URL?
1. Download custom permalinks for WooCommerce from WooCommerce Marketplace. 2. Go to WooCommerce > Settings > Custom Permalinks. 3. In the “Category permalinks” section , choose “ Category slug only ” or “ Full path ” if you want to include the full category path to this category in the URL.
How to add an ending to URLs in WooCommerce (.html, .htm, .php)?
1. Download custom permalinks for WooCommerce from WooCommerce Marketplace. 2. Go to WooCommerce > Settings > Custom Permalinks. 3. Type .html, .htm, .php or any other extension you want to see at the end of URLs. Then choose the type of URL you want to change – product pages, category pages or both.
Installation and configuration ↑ Back to top
To configure your store with custom permalinks for WooCommerce:
Here you will find everything you need to set up permalinks for your product and category pages.
Configurez les permaliens des produits. ↑ Haut de page
Vous pouvez trouver 4 options ici :
Utiliser les valeurs par défaut – l’extension n’affecte en aucune façon les permaliens de votre produit. Vos permaliens seraient les mêmes que ceux que vous avez définis dans les paramètres généraux de WordPress.
Slug de produit seul – vous verrez le slug de produit juste après le nom de domaine. /product/, /product-category/ et toute autre partie de la structure de permalien par défaut seront coupées.
Product slug with category name – you can create pretty URLs that will indicate the main category where the product is situated (it also may be category chosen in Yoast SEO plugin if you use that option) + product slug alone.
Full path – differs from the last option only with one additional part of permalink – parent category. In case you use second-level categories, the URL will be formed with 1st level category slug + 2nd level category slug + product slug.
Changing permalink structure for the product separately from general settings
Aside from setting up permalinks for all product pages, you can also set up a permalink structure for each product separately.
Enable ‘Product specific permalinks’ feature in Advanced settings:
Then go to the product page, for which you wish to change the permalink and you will find a new metabox available for you – Custom permalinks.
Here you can change permalink settings that will be applied for this specific product only. It doesn’t affect any other products in the store.
For instance, if you want to keep the regular WooCommerce permalink structure for all products except a few and make landing pages for those few, you can choose Use WooCommerce defaults on general plugin settings level, and then go to those product pages and pick up the desired structure for them separately, e.g. Product slug alone. In this case, all of your products will have a regular WooCommerce structure (store.com/product/product-slug) except those few landing pages with store.com/product-slug URL structure.
After customizing permalinks for product pages, you may want to change categories permalinks as well. You have 3 options here:
Use defaults – extension doesn’t affect your category’s permalinks in any way. Your permalinks would be the same as you set in the general WordPress settings.
Category slug alone – extension simply removes /product-category/ part from the URL and leaves the only category slug right after the domain.
Full path – in case you use second-level categories, the permalink will consist of 1st level category slug (parent category) + 2nd level category slug.
Include /shop/ base ↑ Back to top
When you remove /product/ or /product-category/ based via plugin settings, the /shop/ base is also automatically removed. Then your permalink starts looking like you can see on the example:
As you can see, the default /shop/ base is missing for all URL configurations. In case you need to bring the /shop/ base back, enable the option below:
Then /shop/ base will be included right before the product or category slugs (depends on what permalink configuration you choose to use).
For instance, if you choose the Product slug alone for Product permalink, it will be:
http://site.com/product-slug – without option enabled
http://site.com/shop/product-slug – with ‘Include shop’ option enabled
Note that the Include shop’ option enables /shop/ base for both product’s and category’s permalinks.
And the category permalink for the ‘Full path’ option will be:
http://site.com/parent-category/category-slug – when ‘Include shop’ option disabled
http://site.com/shop/parent-category/category-slug – when ‘Include shop’ option is on
Replace product slug w/ SKU ↑ Back to top
There are times when you want to replace the regular product slug (which is usually generated from the product title) with another product identifier – SKU. Be aware, to use SKU as the product slug you need to determine SKU for every product here:
Add extensions after the slug (.html, .htm, .php) ↑ Back to top
In case you migrated from another CMS and wanna replicate old URLs, you may need to extend a regular slug with some custom URL ending, like .html. You can specify any kind of ending you want in that field and then apply it to every product or category page.
Advanced settings ↑ Back to top
In this section, you’ll find options that might be beneficial or even crucial for your SEO, so don’t forget about it.
Turn on 301 redirects.
301 redirects affect both regular users and search engine crawlers. When you’re editing permalinks on existing products and categories, it’s better to use 301 redirects. After enabling 301 redirects, anyone who goes to the old URL will be redirected to the corresponding new URL so that you won’t lose any old clients.
Add canonicals to avoid content duplicates
After you make changes in permalinks, the page would be reachable by two different URLs (the old one and the new one). rel=”canonical” link tag specifies the “preferred” version of a web page, so search engines don’t consider them to be content duplicates.
Choose the primary category (via Yoast plugin)
This feature is available only if you utilizing Yoast SEO plugin. If so, you can enable categories from Yoast settings to be considered for permalinks. Yoast plugin instructions on primary category.
Sitemap ↑ Back to top
To let search engines know about your newly established URLs better to place them into sitemap.xml. To do so, please install the Yoast SEO plugin and turn off any other plugins that you may use for sitemap generation. Then every new URL will be placed to sitemap.xml automatically.
FAQs ↑ Back to top
- Can this extension hurt ranking on Google?
The answer could be yes and no at the same time. If you’re using the extension on a newly created website, it would probably only improve your SEO. But if you’re going to change permalinks for pages that already have some search volume, then better go read about 301 redirects or consult with SEO experts on how to do it in the safest way.
- Do I need to regenerate URLs in some way after changing the permalinks structure?
No, you don’t. All the URLs will be changed automatically after you click the “save changes” button.
- What will happen with permalinks if I remove the extension?
In that case, you’ll find that all of your URLs are restored and look the same they were before installing the plugin. 301 redirects and canonical rules will be deleted as well.
Similar in Marketing
The only payment solution fully integrated to Woo. Accept credit/debit cards & local payment options with no setup or monthly fees.
Product Condition for WooCommerce
by Amplify Plugins
Adds a product condition to the product meta and to Schema markup for the product.
A permalink – short for ‘permanent link’ – is the full URL for a page on a website. It could include your domain name, plus a slug (the part of the URL that follows the domain name). As we explain in this article on permalinks, it’s very important to make sure your permalinks are SEO-friendly. But how do you change the permalink structure? That’s what we’ll explore in this article!
Tenga cuidado al cambiar sus enlaces permanentes si su sitio ha existido por un tiempo. Cambiar sus enlaces permanentes si ya tiene mucho contenido puede generar problemas como errores 404 .
- Why you should change your WordPress permalink structure
- La estructura perfecta de enlaces permanentes SEO de WordPress
- ¿Qué es un enlace permanente?
- ¿Qué es una babosa?
Por qué deberías cambiar la estructura de enlaces permanentes
Como explicamos en este artículo sobre por qué debería cambiar la estructura de enlaces permanentes de WordPress , le recomendamos encarecidamente que la use solo /%postname%/para la estructura de su sitio. Si está utilizando la configuración de enlace permanente predeterminada ( http://www.example.com/?p=123 ), mostraremos un aviso que recomienda cambiar la estructura.
How to Change the Permalink Structure in WordPress
- Start a session on the WordPress website.
When you are logged in, you will be in your ‘Dashboard’.
- Click on ‘Setup’.
On the left side, you will see a menu. Dans ce menu, click on ‘Configuration’.
- Click on ‘Permanent Enlaces’.
The ‘Settings’ menu will expand giving you additional options. Cliquez sur ‘Permalinks’.
- Select ‘Publication Name’.
- Click on ‘Save changes’.
- Use this tool to generate the correct code.
- Add the code you generated in the previous step to your site’s .htaccess file.
Not sure how to edit the .htaccess file? We have a ‘How To’ guide available ici.
Advanced crawling configuration : cleaning permalinks My sitemap is giving a 404 error, what should I do? Yoast et des serveurs NGINX XML sitemaps
Get Yoast SEO Premium
Be the first to get new features and tools , before everyone else. Obtain assistance 24/24 and 7/7 and increase the visibility of your website.
99 $ USD /year (excluding VAT)
Get Yoast SEO Premium »
Read real user reviews
4.6 / 5