Add this function to active theme’s function.php
function ahir_custom_pagination_base() {
global $wp_rewrite;
$wp_rewrite->pagination_base = 'product-page'; //where new-slug is the slug you want to use
$wp_rewrite->flush_rules();
}
add_action('init', 'ahir_custom_pagination_base', 1);
*Note* : Refresh/reser permalinkg after added above code. so your URL will look like this: https://www.frenethique.fr/dents/product-page/2/
Thread Starter
elsa31
(@elsa31)
Hi,
Thank you but my URL look like to this already => https://www.frenethique.fr/dents/product-page/2/
and I would like URL look like https://www.frenethique.fr/dents/?product-page=2
Do you know how to do this ?
Hi @elsa31,
Have you tried the option of setting your WordPress Permalinks to Plain and WooCommerce Permalinks to Default at WordPress > Settings > Permalinks?
For reference on permalinks, kindly check this documentation: https://docs.woocommerce.com/document/permalinks/#section-3
I hope this helps.
Thanks.
Hello @elsa31,
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.
Thank you!