
內容簡介
你是否曾經需要給某人一個簡短的 URL?也許你是一個播客,無法說出“訪問 mydomain.com/2008/01/03/my-post-with-a-long-url/ 以獲取更多信息”。那麼,如果你只是說“轉到 mydomain.com/go/mycoolpost/”是否會很有用呢?當然,你可以使用像 tinyurl.com 這樣的服務,但如果你需要為播客使用 URL,這仍然不太好。讀出“tinyurl.com/27asr9”,感覺還是有點棘手,是嗎?這也不夠專業。
GoCodes 讓你可以從 WordPress 管理員直接創建任何地方的網址捷徑。
該外掛也可用於隱藏聯盟計劃 URL。
升級
停用外掛
上傳更新的文件
重新啟用外掛
來源
我們很自豪,這個外掛的原始基礎是一個名為 redwall_hp 的 GoCodes 分支(現在不能下載並且目前也不支持)。
我們在發布之前曾經修改過這個外掛,將一些代碼剝離出來,使其變成一個簡單且輕量級的外掛。
已知問題
WP Super Cache
似乎 WP Super Cache 外掛存在一個問題,一次轉向後需要清除緩存才能再次轉向。有一些解決方法:
在 WP Super Cache 選項頁面的“拒絕的網址”字段中添加“index.php”並換行。 yourdomain.com/ 仍將被緩存,但 /index.php 不會被緩存。
frederickding.com 的 Frederick 組建了一種方法。在 WP Super Cache 行的上面添加此行到您的 .htaccess 文件中:RewriteCond %{QUERY_STRING} !.gocode=.。它應該像這樣:
RewriteCond %{QUERY_STRING} !.gocode=.
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
外掛標籤
開發者團隊
原文外掛簡介
Have you ever had to give someone a shortened version of a URL? Maybe you’re a podcaster, and you can’t say “visit mydomain.com/2008/01/03/my-post-with-a-long-url/ for more info.”
Wouldn’t it be useful if you could just say “go to mydomain.com/go/mycoolpost/ ?” Sure, you could use a service like tinyurl.com, but that’s still not too great if you need the URL for a podcast. It’s still awkward to read-out “tinyurl.com/27asr9,” isn’t it? It’s less professional too.
GoCodes let’s you create shortcut URLs to anywhere on the internet, right from your WordPress Admin.
The plugin is also useful for masking affiliate program URLs.
Upgrading
Deactivate plugin
Upload updated files
Reactivate plugin
Origin
We are proud that original base of this plugin is a fork of GoCodes by redwall_hp (Not available for download and Supported currently).
We worked on the plugin before before releasing it is “WPNeon GoCodes2”, stripped down some code to make it a simple & lightweight.
Known Issues
WP Super Cache
There seems to be a conflict with the WP Super Cache plugin where a redirect will only work once before the cache is cleared. There are a couple of workarounds:
Add “index.php” on a new line in the “Rejected URLs” field of the WP Super Cache options page. yourdomain.com/ will be cached still, but /index.php won’t.
Frederick of frederickding.com put together another method. Add this line to your .htaccess file above the WP Super Cache line: “RewriteCond %{QUERY_STRING} !.gocode=.” It should look something like this:
RewriteCond %{QUERY_STRING} !.gocode=.
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
