SEOPRESS 與 Translatepress 的問題

正在檢視 3 個帖子:1-3 (共 3 個帖子)
  • 作者
    帖子
  • gnt-wordpressgnt-wordpress
    參與者
    • 文章數量: 53
    初來乍到
    發帖數:9
    樓主
    @gnt-wordpress

    一個多語言站點,開啟了 seoress 中得 Remove /category/ in your permalinks    Remove /product-category/ in your permalinks 兩個選項,讓連線更規整,同時使用了  translatepress 作為多語言方案,目前遇到的問題是,所有的多語言分類頁面都指向是 404,即使在 translatepress 中得 URL Slug Translation 中將 product-category 全部修改為  product-category 也一樣!

     

    問題站點:https://www.come-star.com/WX20250312-161527

    詩語詩語
    管理員
    • 文章數量: 5,955
    發帖數:10035
    @feibisi

    現在是推薦文派素格 wpslug 可以實現自動化 slug 別名,也支援多語言自動翻譯。

    文派素格 (WPSlug) 外掛釋出,WordPress 自動中文 URL 別名翻譯和拼音轉換

    gnt-wordpressgnt-wordpress
    參與者
    • 文章數量: 53
    初來乍到
    發帖數:9
    樓主
    @gnt-wordpress

    這個問題我遇到過,簡單的解決邏輯是  seopress 透過 slug 中得 關鍵詞 category 以及 product-category 將這兩個移除,實現了簡化 URL 的目的,在 translatepress 中,如果你開啟了 slug 翻譯,就會導致   category  以及 product-category 會被翻譯為別的字元,然後又與 remove 的邏輯衝突,導致直接 404 ,解決的辦法 在  translatepress 中得  string 翻譯中,將其他語言的  category 以及 product-category 翻譯結果強制修訂為,category 以及  product-category 即可!

     

正在檢視 3 個帖子:1-3 (共 3 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊