[WordPress] 外掛分享: Redirect.txt

首頁 › 外掛目錄 › Redirect.txt
WordPress 外掛 Redirect.txt 的封面圖片
全新外掛
安裝啟用
—
尚無評分
7 天前
最後更新
—
問題解決
WordPress 6.2+ PHP 8.3+ v0.3.0 上架:2024-05-11

內容簡介

Redirect.txt 是一款簡單易用的 WordPress 外掛,讓使用者能夠輕鬆管理 URL 重定向,無需創建多餘的文章或條目,並支援批量操作,提升網站的管理效率。

【主要功能】
• 支援路徑重定向
• 完整 URL 重定向
• 貼文 ID 重定向
• 正則表達式重定向
• 重定向日誌
• 404 錯誤日誌

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.0) 或搜尋安裝

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

原文外掛簡介

With Redirect.txt, you can provide a simple list of URLs and their destinations with no post-creation bloat, no limitations, and just a simple editor.
There are many good redirect plugins that have been developed for years and have a strong code base. But we don’t like the idea of creating separate posts/entries for each redirection rule. We simply need to add, remove, and manage redirects in a simple and bulk way.
.htaccess and nginx configs are OK, but we don’t want to edit configs placed somewhere in server directories; we want to open our admin panel and add redirects easily. We also don’t care about wrong config configurations, which will stop your server.
Quick Links
GitHub
Features

Path redirects
Full URL redirects
Post ID redirects
RegEx redirects
Redirect logs
404 logs

Usage
Open Tools → Redirect.txt and provide a list of URLs here. Here is an example of available syntax:
# The links below will automatically use 301 redirects.
/hello: /new-hello

# Support for custom status
# To make 301, 302, 303, 307, or 308 redirects, use a code like this:
308: # All redirections below will use 308 redirect status.

# Support for post ID's
# Redirect from post with ID 1 to post with ID 8:
1: 8

# Support for external redirects:
/external: https://google.com/

# Support for RegEx redirects (automatically detected when the string starts with ^):
^/news/(.*): /blog/$1

# You can use as many comments as you want to categorize your links better.

The same rules without comments:
/hello: /new-hello

308:

1: 8
/external: https://google.com/
^/news/(.*): /blog/$1

延伸相關外掛

文章
Filter
Mastodon