转到文件
libraryupgrader 694cb43858 build: Updating grunt-banana-checker to 0.12.0
Change-Id: I9a9cb96a78faf9e908b93e37de9d5ff920e7d2cf
2024-05-10 23:25:03 +00:00
.phan Add phan 2019-04-26 21:10:01 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-04-19 09:47:46 +02:00
includes Fix some line indent 2024-04-20 00:08:46 +02:00
maintenance Use expression builder to avoid raw sql 2024-04-20 21:52:35 +02:00
resources build: Updating eslint-config-wikimedia to 0.20.0 2021-04-14 05:27:00 +00:00
schemas Convert ShortUrl to use abstract schema 2020-08-22 21:37:24 +00:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 14:12:36 +00:00
.gitignore build: Updating composer dependencies 2020-01-30 04:31:06 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:03:39 -07:00
.phpcs.xml Fix all excluded errors in PHPCS 2021-01-20 20:45:22 +01:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 10:29:46 +02:00
.vimrc More spacing fixes, and a .vimrc 2011-05-25 22:41:42 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 16:10:02 +00:00
COPYING Add COPYING with BSD-3-Clause license 2020-05-05 20:18:09 +00:00
Gruntfile.js build: Updating dependencies 2021-01-30 12:37:56 +00:00
README Change http://www.mediawiki.org/ to https://www.mediawiki.org/ 2018-04-02 16:36:11 +05:30
ShortUrl.alias.php Add aliases for some languages 2019-09-23 10:02:09 +00:00
composer.json build: Updating composer dependencies 2024-05-06 02:54:00 +00:00
extension.json build: Update MediaWiki requirement to 1.42 2024-01-12 18:25:23 -05:00
package-lock.json build: Updating grunt-banana-checker to 0.12.0 2024-05-10 23:25:03 +00:00
package.json build: Updating grunt-banana-checker to 0.12.0 2024-05-10 23:25:03 +00:00
redirect.htaccess (bug 36164) Use PathRouter to do ShortURL routing 2012-05-06 16:05:58 +05:30

README

--------------------------------------------------------------------------
README for the ShortUrl extension
Copyright © 2011 Yuvi Panda
Licenses: Modified BSD License
--------------------------------------------------------------------------

<https://mediawiki.org/wiki/Extension:ShortUrl>

== Installing ==

Copy the ShortUrl directory into the extensions folder of your
MediaWiki installation. Then add the following lines to your
LocalSettings.php file (near the end):

  require_once( "$IP/extensions/ShortUrl/ShortUrl.php" );

== Configuration ==

$wgShortUrlTemplate specifies the template to use for the shorturl.
$1 in the template is replaced with the ShortURL id.
$wgServer is prepended before $wgShortUrlTemplate.
Defaults to using the longer form (with Special:ShortUrl). Can be
condensed down to use anything else, via mod_rewrite rules