Manual:Short URL/wiki/Page title -- GoDaddy Shared Linux (Not Subdomain)
From MediaWiki.org
These instructions are for GoDaddy Shared Linux hosting with MediaWiki installed in a folder under the main domain
Contents |
[edit] Important Notes
- Install MediaWiki in a directory.
- When testing these instructions, be sure to launch a new browser instance to prevent browser caching from hiding the latest configuration changes.
[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 root directory (with GoDaddy File Manager or by FTP) with this content:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /w/index.php [L,QSA]
RewriteRule ^wiki$ /w/index.php [L,QSA]
</IfModule>
Set .htaccess file Permissions to 777
[edit] LocalSettings.php
Add the following to the end of LocalSettings.php (in Subdomain directory):
# SHORT URLS: $wgScriptPath = "/w"; # Path to the actual files $wgArticlePath = "/wiki/$1"; # Virtual path
[edit] Side by Side with WordPress
If you are attempting to install MediaWiki in a domain with WordPress (which also needs a lot of .htaccess edits) You can accomplish the needs of both my modifying the .htaccess to look like the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/wiki/*
RewriteRule . /index.php [L]
RewriteRule ^wiki/(.*)$ /mediawiki-1.15.1/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /mediawiki-1.15.1/index.php [L,QSA]
RewriteRule ^wiki$ /mediawiki-1.15.1/index.php [L,QSA]
</IfModule>
[edit] Tested With
-
Product Version MediaWiki 1.15.1 PHP 5.2.5 (cgi-fcgi) MySQL 4.1.22-max-log WordPress 2.8.4