By default the main catalog listing is created with the ‘products’ slug. This slug is also the parent of each product page URL. When you change the main product listing page slug, all your product URLs change too.
If your catalog is already live and indexed by search engines, set up redirects from the old URLs after the change.
In order to modify the main product listing page slug:
- Go to your main product listing page and click ‘Edit Product Listing’ on the top admin bar:
If you don’t know where your main product listing page is, go to Products > Settings > General Settings and find the ‘Main Catalog Page’ option in the ‘Catalog Layout Integration’ section:
Click the ‘Edit’ button. If the ‘Edit’ button is not there, it means that you don’t have a main listing page selected. In such case, select it from the list and save the settings. After that, the ‘Edit’ button will appear.
- Now you should see a standard WordPress page edit screen. The first thing is the page title, which you can change to whatever you want. It shows up at the top of the main product listing. To change the slug of the main listing URL and of each product page parent, click the ‘Edit’ button near the ‘Permalink’ under the title. In the block editor, you will find the URL (slug) field in the Page panel of the settings sidebar.
- Now type a new slug and click OK:
- Now hit the ‘Update’ button in the ‘Publish’ box:
- Now you should see the updated main product listing page URL under the title box:
Now you can click on the new URL to check how the catalog URL structure has changed. In our case we’ve changed the URL to ‘flowers’ so:
- Our main catalog listing page will be under example.com/flowers
- Our individual product pages will be under example.com/flowers/example-product
Change the category URL
Product category pages use a separate parent slug. By default it is ‘products-category’, so a category page is under example.com/products-category/category-name.
To change it, go to Products > Settings > General Settings, find the Categories Parent URL field in the Categories Settings section, type a new slug and save the settings.
For more control over product and category URLs, for example to put the category in the product URL, see the Smarter Product URLs extension.
Page not found after the change?
The plugin refreshes the URL rules when you change the main catalog page. If you still see a 404 error on catalog pages after changing a slug, go to Products > Settings and click ‘Save Changes’ without changing anything. You can also do the same in Settings > Permalinks. See also the FAQ.
