Manual:Short URL/wiki/Page title -- GoDaddy Shared Linux Subdomain
From MediaWiki.org
These instructions are for GoDaddy Shared Linux hosting with MediaWiki installed in a Subdomain (e.g., my_wiki.example.com).
Contents |
[edit] Important Notes
- Install MediaWiki in the Subdomain itself with GoDaddy Hosting Connection, not in the Subdomain directory or a lower level directory.
- When testing these instructions, be sure to launch a new browser instance to prevent browser caching from hiding the latest configuration changes.
- To change the logo image for the wiki, upload your image file to the Subdomain directory, and add something like the following to the end of LocalSettings.php (with "/" before your image file name):
$wgLogo = '/my_wiki_logo.png';
[edit] ImageMagick
GoDaddy Hosting Connection configures the path to ImageMagick as /usr/bin/convert, but as of this writing that's an older version of ImageMagick that doesn't support the thumbnail option. For a later version of ImageMagick that does support the thumbnail option, add the following to the end of LocalSettings.php:
$wgImageMagickConvertCommand = "/usr/local/bin/convert";
[edit] .htaccess
Create .htaccess in Subdomain directory (with GoDaddy File Manager or by FTP) with this content:
RewriteEngine On RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ /index.php [L,QSA] RewriteRule ^/*$ /index.php [L,QSA]
[edit] LocalSettings.php
Add the following to the end of LocalSettings.php (in Subdomain directory):
# SHORT URLS: $wgScriptPath = ""; # Path to the actual files $wgArticlePath = "/wiki/$1"; # Virtual path
It may be necessary to set $wgUsePathInfo to true with this code:
$wgUsePathInfo = true;
[edit] Example
- Navas Wireless Wiki
- MediaWiki installed in "wireless" Subdomain (wireless.navas.us)
- Tested with:
-
Product Version MediaWiki 1.13.1 PHP 5.2.5 (cgi-fcgi) MySQL 4.1.22-max-log
--John Navas 19:57, 9 October 2008 (UTC)