How to change permalink in wordpress

New Page

  1. Documentation /
  2. Custom Permalinks for WooCommerce

Custom Permalinks for WooCommerce

 

8eU3TcMMKnVS8TFX7Uw8 bsudxZAqRERH6MNgTazq

¿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.Remove /producto/base from URL in WooCommerce

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 strip product category base from WooCommerce 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.¿How to aggregate a last URL in WooCommerce (.html, .htm, .php)?

Installation and configuration ↑ Back to top

To configure your store with custom permalinks for WooCommerce:

Go to WooCommerce > Settings > Custom Permalinks. ↑ Back to top

permalink parameters2

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

product-permalink

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:

Product-specific-permaline

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.

metabox

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.

Set up category permalinks. ↑ Back to top

Category-Permalia

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:

Screenshot-2022-06-16-at-00

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: 

Screenshot-2022-06-16-at-00

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

Product-slug

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: 

sku-on-product

Add extensions after the slug (.html, .htm, .php) ↑ Back to top

end url

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

Advanced

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

woo-WooCommerce_Payments-mtulxp

WooCommerce Payments

by WooCommerce

The only payment solution fully integrated to Woo. Accept credit/debit cards & local payment options with no setup or monthly fees.

4.4 (14)

Product Condition for WooCommerce

by Amplify Plugins

Adds a product condition to the product meta and to Schema markup for the product.

×

How do I change the permalink structure?

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 .

Artículos relacionados

  • 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.

wpseo_general_dashboard_notifications_permalink-600x95 How to Change the Permalink Structure in WordPress

  1. Start a session on the WordPress website.

    When you are logged in, you will be in your ‘Dashboard’.

  2. Click on ‘Setup’.

    On the left side, you will see a menu. Dans ce menu, click on ‘Configuration’.

  3. Click on ‘Permanent Enlaces’.

    The ‘Settings’ menu will expand giving you additional options. Cliquez sur ‘Permalinks’.Configuring Permalinks

  4. Select ‘Publication Name’. 

    wordpress-permalink-settings2

  5. Click on ‘Save changes’.
  6. Use this tool to generate the correct code.
  7. 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.

Related Posts

Advanced crawling configuration : cleaning permalinks My sitemap is giving a 404 error, what should I do? Yoast et des serveurs NGINX XML sitemaps

yoast_seo 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

g2_logo_white_rgb star-rating-star star-rating-star star-rating-star star-rating-star half stars4.6 / 5

Google Google translator

Google Google Translate


Video How to change permalink in wordpress

Related Posts

How to add seo keywords in wordpress

Contents1 Cómo agregar palabras clave de SEO en WordPress (aumentar el CTR y las clasificaciones)1.1 Post Title1.2 Headline1.3 Header Tags1.4 Introduction and Conclusion1.5 Body Copy1.6 URL1.7 Meta…

How to embed google calendar into wordpress

Contents1 How to Add a Google Calendar in WordPress (Step by Step)2 Add a Google calendar to your website3 calendario de Google3.1 Versatile plans and pricing4 Video…

How to change the logo in wordpress

Contents1 How to Add a Custom Logo to Your Site Header2 Site Logo2.1 Planes y precios versátiles3 Add, remove or edit a custom logo4 Video How to…

How to add a popup on wordpress

Contents1 Easily create a WordPress emergent form (2 forms)1.1 ¿Por qué usar un formulario emergente de WordPress?1.2 Método #1: Crear un formulario emergente con OptinMonster + WPForms1.3…

How to roll back wordpress version

Contents1 How to Revert WordPress: Undo WordPress Updates (Easy Way)2 How to Downgrade WordPress & Roll Back to a Previous Version2.1 1. A WordPress update included significant changes…

How to rollback wordpress version

Contents1 How to Downgrade WordPress and Revert to an Older Version1.1 1. A WordPress update included significant changes that are not compatible with your theme or plugins1.2…