Manual talk:Short URL/LocalSettings.php
cgi hint
editWith CGI it is now possible to have Short URLs.
Add the two following lines to LocalSettings.php:
$wgUsePathInfo = true;
$wgArticlePath = "/wiki/index.php/$1"; (my installation of mw is in the subfolder /wiki)
Tested with PHP 5.2.6 CGI/FastCGI and Apache/2.2.9 (Unix) and MediaWiki 1.13.1 --79.198.93.195 21:20, 11 September 2008 (UTC)
Subodmains
editTask: Use a subdomain and custom installation folder. Given http://foo.localhost landing page URL would resolve to http://foo.localhost/wiki/Main_Page with file path /var/www/foo/w/index.php/
I set up my Apache according to this documentation and follwed this manual for editig LocalSettings.php.
In server logs requests to http://foo.localhost were correctly redirected (file was found) but then I somehow "lost" the subdomain ending in http://localhost/wiki/Main_Page with a 404.
I could fix this by editing LocalSettings.php and set $wgServer = "http://foo.localhost";
HOW to setup like subdomain.example.com/Page_Name ?
editHOW to setup like subdomain.example.com/Page_Name ?