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

ShortURL

外掛說明

The ShortURL plugin allows you to use your blog as your own URL shorterning service by implementing the Short URL Auto-Discovery specification. Your short URLs will be in the form of http://domain/-code.

The auto-discovery feature allows third-party services that honor it to use your own short URLs instead of generating new ones using services such as TinyURL, bit.ly, and others. This gives your posts and pages canonical short URLs that give you all SEO benefits and don’t leak traffic out to external domains and will prevent linkrot. The homepage short URLs is set to just http://domain/ as a unique feature.

The other great benefit of the ShortURL plugin is that the generated short URLs won’t break if you change the permalink structure of your blog or rename the slug of a particular post or page.

Due to the recent choice of both the Microformats community and WordPress.com to use rel="shortlink" vs the alternative proposals, the ShortURL plugin is also using it now.

More on the topic:

To Do

安裝方式

  1. Upload shorturl.zip to the /wp-content/plugins/ directory
  2. Unzip the archive
  3. Activate the plugin through the ‘Plugins’ menu in WordPress Admin
  4. Update the settings

常見問題集

Why did you choose Short URL vs RevCanonical or shortlink specifications?

RevCanonical is not supported by HTML 5 and it seems that Short URL is getting wider support by big blogs such as Ars Technica and other sites such as PHP. We will closely monitor the developments and implement the winning specification.

Are you planning to provide third-party URL shorteners?

Yes, in the near future. Actually, third-party providers are already supported by the Short URL custom field, but it’s not automatic and you have to shorten the URLs manually.

Are you planning to support alternative domains for short URLs?

Yes and this will also eliminate the dash in the URLs.

Will you add support for custom short URL patterns?

Yes. The dash-based one will continue to be the default one though.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

0.4.2

  • Minor plugin info cleanup

0.4.1

  • Minor plugin info cleanup

0.4

  • Added [shorturl] shortcode
  • Added the_shorturl() and get_shorturl() functions for use in themes
  • Switched to rel="shortlink" similarly to WP.me

0.3

  • Replaced the tilde (~) with dash (-) in the short URLs similarly to FriendFeed & Ginx, but the tilde is still supported for backward compatibility

0.2

  • Added a short URL for the homepage

0.1.1

  • Fixed a versioning issue

0.1

  • First release. Yay!