Manual talk:Short URL/wiki/Page title -- PHP as a CGI module, no root access

Thank you
Thank you, after months and months and months and months and months of trying, I finally got a shorturl to work. THANK YOU!!!!!! Odessaukrain 10:36, 6 October 2007 (UTC)

What does this mean?

 * It's important not to have any paths defined BEFORE the path itself. That is, you shouldn't see $wgScriptPath as a value (after the = sign) BEFORE you see $wgScriptPath = (when it's defined for the first time).

I moved this to talk. It is so confusing because the one line "$wgScriptPath" is described twice in this sentence. Odessaukrain 10:36, 6 October 2007 (UTC)

Help!
Hi, I'M ITALIAN!!

I have tested this script in a subDirectory and not work.... The htaccess code is:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^wiki/(.+)$ wiki/index.php?title=$1 [L,QSA]

RewriteRule ^wiki$ wiki/index.php

Help me, please! Roberto, the Italian
 * You are proably not going to get help here. I suggest going on the IRC board for wikimedia. They may help. irc://irc.freenode.net/mediawiki Odessaukrain 01:47, 31 October 2007 (UTC)

Yessssssss! Got it! Found the problem. :-) Wheeeeeh! :-D ^L^

If your wiki is inside a subdirectory like

http://www.example.com/wiki/Main_Page

and stuff like that, you can use |the scripts listed in the manual freely, BUT you MUST pay attention to:


 * disable wgUsePathInfo (dirty freaky phuckin bastard junky option!) in /wiki/LocalSettings.php

$wgUsePathInfo = false;


 * change all your references inside the .htaccess file

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA] RewriteRule ^wiki$ /wiki/index.php

I'm using MediaWiki version 1.11.0

Hope this helps ;-)

Unwiredbrain 22:49, 5 November 2007 (UTC)

works, but...
The script worked perfectly out of the box for me... however, the behavior is not exactly how I would like it.

My website previously worked as "wiki/index.php/example" and all of the incoming links are to "wiki/index.php/example". Now, that address always redirects to the main page.

Is there any way to modify this guide so that "wiki/index.php/example" links work properly? J.smith 19:38, 9 December 2007 (UTC)

Seem to work fine, but problems with uploads
After doing this with MediaWiki 1.11.1 i lost the abitity to upload images (after pressing the upload it brings me to page Special:Uploads which is blank, the upload actually begins, as I see from my traffic meter), but I still can edit pages. The original adress line of Main Page was sub.mydomain.com/index.php?title=Main_Page, it turned into sub.mydomain.com/Main_Page (intallation path /public_html/sub/), slashes and dots in names do not work (though it's not a big deal). Does anyone can advice with restoring upload possibility? (i dont have access to httpf, only to .htaccess) The server uses:

Platform Type Debian

MySQL Version 5.0.45

Perl Version 5.8.8

PHP Version 5.2.2

Path to SendMail /usr/sbin/sendmail

Path to Perl /usr/bin/perl

Path to PHP /usr/local/bin/php

Any additional info can be supplied (just not quite sure, which) --Redsunrising 14:17, 12 February 2008 (UTC)