Manual talk:Short URL/wiki/Page title

From MediaWiki.org

Jump to: navigation, search

[edit] please create this

Could somebody please create this. 02:36, 16 September 2007 by —The preceding unsigned comment was added by 72.68.198.134 (talkcontribs) . Please sign your posts with ~~~~!

umm, I did this and it worked, but it stuffed up the links to the pictures I had. I am playing around with the aliases to get them back but I am not an apache guru. when I get a solution I will post, but maybe someone knows how to redo the links straight away.
fixed : add to httpd.conf Alias /w/images /path/to/your/Mediawiki/images —The preceding unsigned comment was added by 203.173.197.182 (talkcontribs) . Please sign your posts with ~~~~!

[edit] Using Mediawiki 1.11.0

Works just as it says in the instructions - for clarity, I've got apache2triad installed in C:\apache2triad. So I've added to Localsettings.php found in C:\apache2triad\htdocs\Wiki ........

##This lot is in the middle of the file
## "The URL base path to the directory containing the wiki;"
## "defaults for all runtime URL paths are based off of this."
#$wgScriptPath = "/Wiki"; #commented this out higher in the file
$wgScriptExtension = ".php";
## and then at the bottom of the file I added.....
$wgScriptPath = "/w"; # "in default installations this line is already present" - yeah see above - although it said 'wiki' in my installation
$wgScript = "$wgScriptPath/index.php";
$wgArticlePath = "/wiki/$1";
#$wgUsePathInfo = false; - I'd tried a load of other solutions that recommended doing this - it doesn't work in this method.

Then add at the bottom of http.conf ~(found in C:\apache2triad\conf in my settup)

Alias /w/index.php C:/apache2triad/htdocs/Wiki/index.php
Alias /wiki C:/apache2triad/htdocs/Wiki/index.php
Alias /w C:/apache2triad/htdocs/Wiki/
Alias /index.php C:/apache2triad/htdocs/Wiki/index.php

Remember to delete any .htaccess files you might have created in your htdocs/wiki directory as a result of trying other solutions. Restart your apache.....AND IT WORKS!!!!!! hooray.. URL for mainpage now reads http://www.my.domain/wiki/Main_Page ......phew took my days.......--Mcginnly 10:51, 12 November 2007 (UTC)