Title: ShortURL
Author: Nikolay Kolev
Published: <strong>2009 年 4 月 20 日</strong>
Last modified: 2009 年 8 月 16 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/shorturl.svg)

# ShortURL

 作者：[Nikolay Kolev](https://profiles.wordpress.org/kolev/)

[下载](https://downloads.wordpress.org/plugin/shorturl.0.4.2.zip)

 * [详情](https://cn.wordpress.org/plugins/shorturl/#description)
 * [评价](https://cn.wordpress.org/plugins/shorturl/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/shorturl/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/shorturl/#developers)

 [支持](https://wordpress.org/support/plugin/shorturl/)

## 描述

The ShortURL plugin allows you to use your blog as your own URL shorterning service
by implementing the [Short URL Auto-Discovery](http://wiki.snaplog.com/short_url)
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](http://tinyurl.com/),
[bit.ly](http://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](http://microformats.org/) community
and [WordPress.com](http://wordpress.com/) to use `rel="shortlink"` vs the alternative
proposals, the ShortURL plugin is also using it now.

More on the topic:

 * [Microformats Wiki: rel=”shortlink”](http://microformats.org/wiki/rel-shortlink)
 * [WP.me – shorten your links](http://en.blog.wordpress.com/2009/08/14/shorten/)

### To Do

 * Test against [WordPress](https://wordpress.org/) 2.9 and [WordPress MU](https://mu.wordpress.org/)
 * Add a settings page
 * Add a widget
 * Integrated with [Google Analytics](http://www.google.com/analytics/)
 * Integrate with the top [Twitter](http://twitter.com/) plugins to use ShortURL
   instead of third-party services

## 安装

 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](http://wiki.snaplog.com/short_url)
is getting wider support by big blogs such as [Ars Technica](http://arstechnica.com/)
and other sites such as [PHP](http://php.net/). 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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Nikolay Kolev ](https://profiles.wordpress.org/kolev/)

[帮助将「ShortURL」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/shorturl)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/shorturl/)，查看[SVN仓库](https://plugins.svn.wordpress.org/shorturl/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/shorturl/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/shorturl/)。

## 更新日志

#### 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](http://wp.me/)

#### 0.3

 * Replaced the tilde (~) with dash (-) in the short URLs similarly to [FriendFeed](http://friendfeed.com/)&
   [Ginx](http://ginx.com/), 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!

## 额外信息

 *  版本 **0.4.2**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **2.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/shorturl/)
 * 标签
 * [revcanonical](https://cn.wordpress.org/plugins/tags/revcanonical/)[short url](https://cn.wordpress.org/plugins/tags/short-url/)
   [shortlink](https://cn.wordpress.org/plugins/tags/shortlink/)[shorturl](https://cn.wordpress.org/plugins/tags/shorturl/)
   [url shortener](https://cn.wordpress.org/plugins/tags/url-shortener/)
 *  [高级视图](https://cn.wordpress.org/plugins/shorturl/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/shorturl/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/shorturl/reviews/)

## 贡献者

 *   [ Nikolay Kolev ](https://profiles.wordpress.org/kolev/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/shorturl/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://nikolay.com/projects/sponsor/)