Forum:Interwiki exchange

From Illogicopedia
Jump to navigation Jump to search

~ The Bard of Illogicopedia TinyQuill.gif 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. ~ Pointy.png 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 TinyQuill.gif 05:59, 3 Serpeniver 2011 (UTC)

Please make it so that the tlh: interwiki on ?media links to www.illogicopedia.org/wiki/tlh:$1. ~[TheHappySpaceman] [thehappyspaceman] haskidnappedyourmum 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 TinyQuill.gif 20:04, 3 Serpeniver 2011 (UTC)

Thanks for the bittles, man. This may prove quite useful. ~ Pointy.png 08:34, 4 Serpeniver 2011
Anytime. It was an interesting task getting it working. ~ The Bard of Illogicopedia TinyQuill.gif 08:51, 4 Serpeniver 2011 (UTC)