這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Allowed Routes

外掛說明

Define allowed routes for your website, all other routes will return a 404 error. Permalinks will be overruled.

Login, Backend routes and local files (like wp-login.php) are always available to prevent a lockout.

Also delete all your page caches after enabling to prevent unwanted routing behavior.

Use cases:

  • Absolute control over all permalinks
  • Prevent unwanted search engine indexing
  • Be sure no custom post type adds unwanted permalinks
  • No frontend needed

Important:

  • The routing overrules permalinks and works like a whitelist. Only correct entered routes will go through. You should test the routing before using on production environments
  • Be careful using several routing- or redirect plugins at the same time
  • Do not forget to delete all your page caches after enabling/disabling the routing to prevent unwanting routing behavior

Behaviour:

  • The used protocol (HTTP or HTTPS) will be ignored
  • GET params will be ignored
  • Routes are case sensitive

Syntax / Wildcards:

  • The route / allows the index page (Check the checkbox \”Allow index page\”)
  • Wildcard * allows a single term with an arbitrary value (e.g. category//page/)
  • Wildcard ** permits all possible combinations of terms (e.g. category/**) This wildcard is only allowed at the end of a route
  • Wildcards are only allowed as complete terms. Correct: /foo//bar/** Wrong: /foo/ba/test**

螢幕擷圖

  • Example

安裝方式

  1. Unzip and upload the plugin package into the plugins directory
  2. Login to the dashboard and activate the plugin
  3. Click Settings to configure the plugin

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Allowed Routes〉的開發相關工作。

參與者

將〈Allowed Routes〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

  • Compatibility check to WP 5; minor wording changes

  • Initial release