Extension:Surl

Surl is a special page extension that helps create shortened URLs for wiki pages. The short link is added to a semantic property 'Surl' of BASEPAGEs manually. 'Surl's for the SUBPAGEs can be added automatically. The extension adds the short and long links of the page to a separate Yourls database. Primarily developed for use in WikiTranslate.org.

Requirements

 * 1) Extension:Semantic MediaWiki
 * 2) Yourls - Your Own URL Shortener
 * 3) Getting another domain for the website is optional. The shorter the domain name, the better, especially if you plan on sharing your short URLs on Twitter or any other medium where short is better.

Installation
Download and extract the files in a directory called  in your   folder.

Add the following code at the bottom of your LocalSettings.php:
 * $wgSurl="/your/site/url/";


 * Run the update script which will automatically create the necessary database tables that this extension needs.
 * You can run once or put in cron the file __DIR__."/extensions/Surl/runSurl.php";
 * ✅ – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.