On Sep 16, 2004, at 11:32 AM, Rowan Collins wrote:
> Moonlight Embrace wrote:
>> My webhost has just transferred one server to another, and in the
>> process decided to run PHP as cgi! I no longer have pretty urls. Is
>> there anything I can do about this?
>
> I may be wrong, but isn't the pretty URLs thing down to mod_rewrite,
> and independent of PHP? I understood it to just be interpretting the
> short URLs as though they were the long ones. In which case, all you
> have to do is play around with .htaccess until the rewrite rule works
> properly [again].
When PHP is run with the normal apachehandler or apache2handler server
APIs, you can place a slash and additional data after the script
filename, and it's passed on to the script (index.php/Main_Page).
MediaWiki uses this preferentially to index.php?title=Main_Page when
available.
In CGI mode this doesn't work, so setting up rewrite rules is necessary.
-- brion vibber (brion @ pobox.com)