Linux 软件免费装

RevCanonical

开发者 whomwah
更新时间 2009年12月15日 18:04
PHP版本: 2.6 及以上
WordPress版本: 2.8.6

标签

post links simple url shortening revcanonical

下载

1.0 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6

详情介绍:

RevCanonical generates a short url for your pages, as well as adding link shortening discovery. You can use this url on character restricted sites like Twitter, in IM, or anytime you need a short link to your webpages. The discovery part means that other sites and services can also use the short url should they need it. Oh and this short url is yours, from your website. It does not use any external service. Here's what gets added to your pages. The link in the href is the short version you can use: <link rev="canonical" type="text/html" href="http://my-domain.me/p12p" /> This tag can though be customised to suit your own preferences (at your own risk), for instance this: <link rel="shortlink" href="http://my-mini.me/p12p" /> That’s it! You can now, not only use this url to pass around, and in sites like Twitter without having to go via a url shortening service, but services or people that understand the rev=canonical link tag, will be able to use this shortened version over the longer canonical version. It also means that it’s persistence is down to you, and not to a 3rd party. Oh and there's a great bookmarklet that makes hunting for existing short urls on a page really simple. You can read more about this plugin at my website http://littl.me/p136 NOTE: I use the Day and name style permalinks in Wordpress. I can't be sure the plugin will work if you use other formats. What's changed? View the CHANGELOG

安装:

This section describes how to install the plugin and get it working.
  1. Upload revcanonical.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

常见问题:

I just get a '404 page not found' when going to the shortlink?

A few people have mentioned this, but due to the fact they were unable to send and debug information, I have not been able to fix it. It is likely to be a configuration setting on shared hosting or hosting on Windows. If you are having this problem and would be prepared to help debug, please drop me a line at duncan [at] whomwah [dot] com

Does it work with earlier versions of Wordpress?

Not sure is the simple answer, I currently run 2.8. If it works with ealier versions, please let me know via Whomwah.com.

But my domain name is really long

You can add you own shortened domain name if you own one via the settings page. This is for advanced users, as it's up to you to point your shortened domain back to the longer one. I do this via a ProxyPass line in that domains conf file. Here's my vhost.conf file. You can find out more about ProxyPass via the Apache website. <VirtualHost *:80> ServerName littl.me ServerAlias www.littl.me ProxyPass / http://whomwah.com/ </VirtualHost>

Can I contribute to revcanonical?

Sure, the code lives at the Revcanonical github project page. You can download or fork it there.