[WordPress] 外掛分享: BP 404s

首頁外掛目錄 › BP 404s
全新外掛
安裝啟用
尚無評分
3318 天前
最後更新
問題解決
WordPress 2.0+ v1.0 上架:2017-02-16

內容簡介

Buddypress是一個很棒的平台,擁有許多驚人的功能,例如允許使用者將BuddyPress個人檔案放在根目錄,啟用此功能將改變使用者個人檔案的URL,從https://mydomain.com/members/tomas/變成https://mydomain.com/tomas/,這是一個很棒的功能,讓我們的網站更加使用者友好。問題在於,啟用此功能後,雖然在前端BuddyPress會手動重定向使用者的個人檔案到https://mydomain.com/usersname/,但在後端我們會發現有大量的404錯誤,我追蹤這些404錯誤,並發現當使用者打開一個使用者的檔案或活動頁面等時,BuddyPress會在後端產生大量的404錯誤,404錯誤的數量取決於活動頁面中有多少使用者連結。我進行了研究,發現其他人也有這個問題,但還沒有解決方案——https://buddypress.org/support/topic/bp-enable-root-profiles-produces-404-errors-2/,我很高興在這裡分享我的解決方案,它非常簡單(當然需要我付出一些心血的日子),希望這能幫助啟用根檔案功能的其他網站主,這是一個很棒的功能,始終以使用者為本。:)

使用方式:

這個外掛程式非常容易使用,只需下載,啟用,不需要任何設定工作,所有的404錯誤都會消失掉。:)

如果您不知道如何將BuddyPress個人檔案放在根目錄,很容易:
在您的wp-config.php中,加入這一行:
define ( 'BP_ENABLE_ROOT_PROFILES', true );

下載

https://tomas.zhu.bz/buddypress-404s/

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「BP 404s」→ 直接安裝(推薦)

原文外掛簡介

Buddypress is great platform which have a lot of amazing features, for example, allow users put buddyPress profiles in the root, enabled this feature will change user’s profile URL from https://mydomain.com/members/tomas/ to https://mydomain.com/tomas/, it is a great feature which make our site more user-friendly. The problem is when we enabled this feature, although in front end buddypress will manually redirect our users profile to https://mydomain.com/usersname/, but in back end we will find there are a tons of 404 errors, I traced these 404 errors and I found when users open a user’s profile or activity pagea and so on, buddypress will general a lot of 404 errors in back end, the number of 404 error is decided by how many users links in the activity page. I did a research and I found other guys have this problem but did not have a solution yet — https://buddypress.org/support/topic/bp-enable-root-profiles-produces-404-errors-2/, I am happy to share my solution in here and it is very simple(of course used my hard work days), hope this will help other webmasters who enabled root profile feature, that is a great feature, user-first, always. 🙂
How To Use:
This plugin is very easy to use, just download, activated it, no any setting work needed, all 404 errors will gone away. 🙂
If you do not know how to put buddyPress profiles in the root, it is very easy:
In your wp-config.php, add this line:
define ( ‘BP_ENABLE_ROOT_PROFILES’, true );
Download
https://tomas.zhu.bz/buddypress-404s/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon