Forum:Interwiki exchange
Hey folks,
?media is coming along well. Fiddled with .htaccess tonight to get clean urls working, so now I'd like to request the following adds to your Special:Interwiki:
Prefix | URL | Forward | Transclude |
---|---|---|---|
?media | http://illogicomedia.org/w/$1 | no | no |
illogicomedia | http://illogicomedia.org/w/$1 | no | no |
~ The Bard of Illogicopedia 05:11, 3 Serpeniver 2011 (UTC)
- How do you do that thingy for the urls, anyway? I'm too lazy to figure it out myself. ~ 05:26, 3 Serpeniver 2011
- There are pretty good instructions at MW org. For me, it took this:
LocalSettings.php[edit source]
# SHORT URLS: $wgArticlePath = "/w/$1"; # Virtual path $wgUsePathInfo = true;
.htaccess[edit source]
<IfModule mod_rewrite.c> # existing code for my wordpress installs RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/w/* RewriteRule . /index.php [L] # to add mediawiki short urls, plus the ^/w/* line above RewriteRule ^w/(.*)$ /mediawiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^w/*$ /mediawiki/index.php [L,QSA] RewriteRule ^w$ /mediawiki/index.php [L,QSA] </IfModule>
Thanks for adding those. ~ The Bard of Illogicopedia 05:59, 3 Serpeniver 2011 (UTC)
Please make it so that the tlh:
interwiki on ?media links to www.illogicopedia.org/wiki/tlh:$1
. ~[
TheHappySpacemanDan the Hedgehog]
13:40, 09/03/2011
- Awesome! Now we can transubstatiate audio cues to bring about an apocalypso! Monsignor Onslow Peaches - Speak slowly into the tube 17:11, 3 Serpeniver 2011 (UTC)
Sorry. Please tweak linked addresses to say /w/ instead of /wiki/ (as changed in top table). I had to change the virtual directory to stop a conflict it was causing with another wiki I have installed in a physical directory with that name. :P ~ The Bard of Illogicopedia 20:04, 3 Serpeniver 2011 (UTC)
- Thanks for the bittles, man. This may prove quite useful. ~ 08:34, 4 Serpeniver 2011
- Anytime. It was an interesting task getting it working. ~ The Bard of Illogicopedia 08:51, 4 Serpeniver 2011 (UTC)
- Thanks for the bittles, man. This may prove quite useful. ~ 08:34, 4 Serpeniver 2011