內容簡介
這是一個 WordPress 外掛,可將所有 URL 格式轉換為 root-relative URLs,以實現在暫存 / 生產主機環境之間以及在移動設備上進行調試 / 測試時的無縫切換,而不需要使用像文本查找替換策略或風險高的主機/NAT欺騙策略這樣的駭客策略。
使用 Root Relative URLs 您可以從 http://localhost/ 或 http://127.0.0.1/ 或從命名網路資源,如 http://mycomputername/ 瀏覽您的開發網站,而不必擔心鏈接會重定向回您站點的 URL。
此外掛還修改了 tinyMCE hooks,因此使用內置工具嵌入的鏈接和媒體將僅插入從域名後的第一個斜杠開始的 URL(即您的網站的根目錄)。這意味著當您將內容更改推送到暫存或生產環境時,它們保證引用正確的目標,而不是在開發中意外地引用生產資源,或者在生產中引用開發專屬的資源。
它支持基於路徑的 MU 安裝,但由於 WordPress 核心的結構缺陷,不支持基於域的 MU 網站。
版本 1.5 修復了 WordPress 中核心錯誤引起的無限重定向問題。如果您在自訂文章類型的 <!–more–> 標籤或永久鏈接方面遇到問題,請閱讀 FAQ 或新的安裝步驟以獲得支持。
版本 2.2 允許將某些 URL 或部分 URL 添加到黑名單中,這意味著我將不使用根相對 URLs,而是動態絕對 URLs 來顯示內容。這將修復與第三方插件的問題,並可以在「常規設置」頁面上進行配置。
任意部分
外掛標籤
開發者團隊
原文外掛簡介
A WordPress plugin that converts all URL formats to root-relative URLs to enable seamless transitioning between staging/production host environments and debugging/testing from mobile devices, without the use of hackish tactics like textual find-replace strategies or risky hosts/NAT spoofing strategies.
With Root Relative URLs you can browse your development site from http://localhost/ or http://127.0.0.1/ or from a named network resource like http://mycomputername/ without worrying about links redirecting you back to your site’s URL.
This plugin also modifies the tinyMCE hooks so links and media embedded with built-in tools will only insert URLs from the first forward slash after the domain (i.e. the root of your site.) This means when you push content changes to a staging or production environment they are guaranteed to reference the correct target instead of accidentally referencing a production resource in development or, worse-yet, a development-exclusive resource in production.
It supports path-based MU Installations, but does not support domain-based MU sites due to architectural deficiencies in the WordPress core.
Version 1.5 fixes an infinite redirect problem that is a result of a core bug in WordPress. If you have problems with the tag or permalinks for custom post types, please read the FAQ or new Install Steps for support.
Version 2.2 allows for adding certain URL’s or partial URL’s to a blacklist, meaning I won’t use root relative urls, but dynamic absolute URLs instead for displaying content. This will fix problems with 3rd party plugins, and can be configured on the General Settings page.
Arbitrary section
