[WordPress] 外掛分享: Doppelslug

首頁 › 外掛目錄 › Doppelslug
WordPress 外掛 Doppelslug 的封面圖片
全新外掛
安裝啟用
—
尚無評分
13 天前
最後更新
—
問題解決
WordPress 6.6+ PHP 7.4+ v1.0.0 上架:2026-10-14

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Doppelslug」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

When a visitor opens an address that doesn’t exist, WordPress tries to help: it looks for a published post or page whose slug starts with what was typed, and redirects there.
That works well until two slugs start the same way:

example.com/how-write-book
example.com/how-write-blog

Now example.com/how-write-b matches both. WordPress redirects to whichever one the database returns first. There is no rule for which one wins, and publishing a new post can quietly change where an old, shortened link goes.
Doppelslug catches this while you write.
In the editor

Block editor: a warning notice, a “Lookalike URLs” panel in the post sidebar, and a check in the pre-publish panel.
Classic Editor: a “Lookalike URLs” box in the sidebar that updates when the slug changes.

Each warning shows the address visitors could type, the posts it could open, and where it leads right now.
Optional fix
Under Settings → Doppelslug, choose what happens to addresses that don’t exist:

Let WordPress decide (default): nothing changes.
Redirect only when one post matches: unambiguous addresses still redirect, and an exact slug match always wins. Ambiguous ones show the Not Found page instead of a random post.
Redirect only exact slug matches: still finds posts that moved to a different date or parent page.
Never redirect.

You can also choose how similar two slugs must be before a warning appears.
Light by design

No custom tables, no tracking, no external requests.
On the front end it adds three small filters that run only on Not Found requests.
An editor check is a few indexed queries, only for the post you are editing.

延伸相關外掛

文章
Filter
Mastodon