http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89024
Revision: 89024
Author: yuvipanda
Date: 2011-05-28 07:58:08 +0000 (Sat, 28 May 2011)
Log Message:
-----------
Default .htaccess for 'really' short URLs
Modified Paths:
--------------
trunk/extensions/ShortUrl/css/ext.shortUrl.css
Added Paths:
-----------
trunk/extensions/ShortUrl/redirect.htaccess
Modified: trunk/extensions/ShortUrl/css/ext.shortUrl.css
===================================================================
--- trunk/extensions/ShortUrl/css/ext.shortUrl.css 2011-05-28 07:49:04 UTC
(rev 89023)
+++ trunk/extensions/ShortUrl/css/ext.shortUrl.css 2011-05-28 07:58:08 UTC
(rev 89024)
@@ -1,4 +1,5 @@
.title-shortlink {
font-size: small;
- font-family: monospace;
+ display: Block;
+ margin: 0px;
}
Added: trunk/extensions/ShortUrl/redirect.htaccess
===================================================================
--- trunk/extensions/ShortUrl/redirect.htaccess (rev 0)
+++ trunk/extensions/ShortUrl/redirect.htaccess 2011-05-28 07:58:08 UTC (rev
89024)
@@ -0,0 +1,3 @@
+RewriteEngine On
+# Needs fixing to remove extra Redirect
+RewriteRule ^([a-zA-Z0-9_-]+)$ /mediawiki/index.php/Special:ShortUrl/$1 [R]
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs