Manual talk:Short URL/Page title -- Aliasing method--Root access
From MediaWiki.org
I think you need to update the version number in the athes given to the latest MediaWiki version (=From 8 to 11 at this date)
[edit] Other way
The method is the same, the directories could be different, ie I installed mediawiki (folder cidewiki) in my localhost within all my projects, so the directory for my wiki is /var/www/cidewiki. My LocalSettings.php file:
$wgScript = "/cidewiki"; $wgArticleScript = "/cidewiki/$1";
And the Apache 2 configuration file:
<IfModule mod_alias.c>
Alias /cidewiki/skins /var/www/cidewiki/skins
Alias /cidewiki/index.php /var/www/cidewiki/index.php
Alias /cidewiki /var/www/cidewiki/index.php
<Directory /var/www/cidewiki>
Options -Indexes
</Directory>
</IfModule>
This is the way that worked for me, but it's because my server configuration and distribution of my projects.
s4lu2
[edit] All good but edit-links do not work properly
Hello, until now this is the best working method for me so far. All other ways i tried on my WAMP 2.0 did cause much more error. But i still have a problem: Editlinks do not work, because they do not point to:
- http://mywikiserver/News_Of_Today/March_2008?title=News_Of_Today/March_2008&action=edit
but to
- ''http://mywikiserver/Main_Page?title=News_Of_Today/March_2008&action=edit.
This causes wiki to open the editfunction of Main_Page but not to create a new page called News_Of_Today/March_2008.
How can i resolve this issue? i guess this requires only a little finetuning.
thanks in advance
kind regards
TurboKanne, February, 8th 2008.
-
- Now I added the following to LocalSettings.php:
#short urls $wgScriptPath = ""; $wgScript = ""; $wgArticlePath = "$wgScript?title=$1";
-
- this fixes the above issue with the edit links. The URL in browser now shows something like: http://mywikiserver/?title=Main_Page. Everything works fine, but how can i finally remove the part ?title=
Any clues?
- this fixes the above issue with the edit links. The URL in browser now shows something like: http://mywikiserver/?title=Main_Page. Everything works fine, but how can i finally remove the part ?title=
-
- thanks in advance
- kind regards
- TurboKanne, February, 8th 2008.
- thanks in advance