最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

woocommerce offtopic - Permalinks contain unwanted space resulting in broken links

programmeradmin1浏览0评论

I have just over 8k products listed on my wordpress site using WooCommerce.

Some product links work fine, vast majority for some reason have an unwanted space and - though ( -) resulting in 404, when i edit the link to remove these 2 characters the link becomes functional again.

The link appears like this inside wordpress editor-

www.mydomain/product/ -randomproduct

On the frontend, the link appears as this:

Www.mydomain/product/%20randomproduct

I'm wondering if theres a way for me to bulk edit all the bad links to remove the 2 problem characters and fix my links.

Thanks for any help received.

I have just over 8k products listed on my wordpress site using WooCommerce.

Some product links work fine, vast majority for some reason have an unwanted space and - though ( -) resulting in 404, when i edit the link to remove these 2 characters the link becomes functional again.

The link appears like this inside wordpress editor-

www.mydomain/product/ -randomproduct

On the frontend, the link appears as this:

Www.mydomain/product/%20randomproduct

I'm wondering if theres a way for me to bulk edit all the bad links to remove the 2 problem characters and fix my links.

Thanks for any help received.

Share Improve this question asked Nov 16, 2020 at 19:08 Ali22Ali22 111 bronze badge 1
  • Welcome to the portal Ali22 ! :) – jgangso Commented Nov 19, 2020 at 8:15
Add a comment  | 

1 Answer 1

Reset to default 0

You can check how the site_url is stored in the wp_options table - make sure there is not a space after the url.

发布评论

评论列表(0)

  1. 暂无评论