外掛說明
Simple URLs Legacy 是 Nathan Rice 開發的 Simple URLs 的分支開發版本,是建立、管理、追蹤網站出站連結的網址管理系統。
使用方式
Simple URLs Legacy 新增一個新的自訂內容類型至網站的管理選單,用於建立、編輯、刪除及管理網址,同時也會將點擊計數儲存於自訂內容類型的自訂欄位,具備極佳的擴充性。
為了避免基於頁面的重新導向 (這是目前遮蔽聯盟連結的常見方式),我們避免了與永久連結產生衝突的相關問題,因此不會產生效能問題。
- 將外掛安裝套件 ZIP 壓縮檔解壓縮所得的
simple-urls-legacy
資料夾上傳至網站的/wp-content/plugins/
目錄。 - 不要重新命名
simple-urls-legacy
資料夾。 - 在 WordPress 管理後台的 [外掛] 選單中啟用外掛。
- 前往
[設定]→[永久連結]
即可。只要開啟這個畫面,WordPress 便會自動清除重新導向。 - 前往
[Simple URLs Legacy]
選單。 - 建立新網址,或管理現有網址。
- 依據實際需求發佈或使用網址。
= 1.0.3 =
* 12/16/2024
* Updated Tested To vesion for WP 6.7.1
* Applied wp_unslash correctly to url sanitization.
* Corrected text domain setting in admin class.
* Aligned license declaration between readme and plugin header.
* Added license comment block.
* Addressed issues with lengthy short description in header.
* Added original contributors back into readme header.
* Adjust loading of constants and get_plugion_data to accomodate WP 6.7 changes in text_domain loading.
1.0.2
- 11/13/2023
- Updated Tested To vesion for WP 6.4.1
- Added logic to pull plugin version from main file header
1.0.1
- 03/31/2023 #5FTF #WebDevStudios
- Updated Tested To vesion for WP 6.2
- Clean up documentation
1.0.0
- 12/30/22 #5FTF #WebDevStudios
- Initial release of Simple Urls Legacy
0.10.3
- 11/25/2022 #5FTF #WebDevStudios
- Add Published date to Simple URLs Legacy admin page
0.10.2
- 11/25/2022 #5FTF #WebDevStudios
- Applied WordPress coding standards
- Tweaked plugin description.
- Added required license declarations in readme.txt
0.10.1
- 10/28/2022 #5FTF #WebDevStudios
- Added conflict notice in admin if Simple URLs plugin is running.
- Reworked constants for better readability.
- Added build/dependency source files back in with updated dependencies.
0.10.0
- 08/09/2022
- Reverted plugin to last known state under original author – Nathan Rice (v0.9.9).
- Renamed plugin from Simple URLs to Simple URLs Legacy.
- URL structure modifier filter changed from ‘simple_urls_slug’ to ‘simple_urls_legacy_slug’.
- Reworked naming conventions to use simple-urls-legacy namespace and package name.
- Removed build/dependency source files.
0.9.9
- Fixed URLs not properly redirecting.
0.9.8
- Coding standards.
- Added composer.
- Added Circle CI integration.
- Added new filter to change the slug.
- Added REST support to ensure Simple URLs appear in list when linking text.
- Added cast string to int to avoid type error.
0.9.7
- WordPress compatibility.
0.9.6
- Add plugin header i18n
- Add textdomain loader
0.9.5
- Changed messages and labels.
- Updated textdomain.
- Generated POT file.
0.9.4
- Fixed saving bug
0.9.3
- Removed capability line from the register function. Users with permission to edit posts can create/edit URLs.
- Bumped to show compatibility with WordPress 3.0.4
0.9.2
- Fixed a type in the plugin URL
- Bumped to show compatibility with WordPress 3.0.2
0.9.1
- Fixed bug with URLs with ampersands in them
- Added
'with_front' => false
to the post type registration
0.9
- Initial Beta Release
常見問題集
-
試著存取建立的新網址時,發生 404 找不到錯誤
-
看來安裝外掛時並未按照安裝說明。
前往
[設定]→[永久連結]
並儲存。不須變更任何設定,直接點擊 [儲存設定] 即可。 -
是否能變更網址結構,而不使用預設的 /go/?
-
可以,使用篩選器
simple_urls_legacy_slug
即可。使用方式:
add_filter( 'simple_urls_legacy_slug', function(){
return 'redirect-me';
});
這段程式碼片段中的文字「redirect-me」會取代外掛在網址中預設使用的「go」。
舉例來說,使用這段程式碼片段會使 example.com/go/my-simple-url/ 變成 example.com/redirect-me/my-simple-url/。
使用者評論
參與者及開發者
以下人員參與了開源軟體〈Simple URLs Legacy〉的開發相關工作。
參與者