Re: Mediawiki's url confusion
| From: | Paul M Foster | Date: | Fri, 24 Jul 2009 05:08:47 +0000 |
| Subject: | Re: Mediawiki's url confusion | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295800@lists.php.net to get a copy of this message | ||
On Fri, Jul 24, 2009 at 10:28:52AM +0800, Dengxule wrote:
> Thanks a lot. As far as i know, both methods dealing with urls are
> WEB-SERVER-TECH. While I was installing mediawiki, i did nothing with the
> file "httpd.conf", no changes made on <mod_rewrite>.
>
> The mediawiki install script cannot do nothing to httpd.conf i think.
>
> So i'm confused about how the url-rewriting mechanism is activited.
This can also be accomplished by Apache's "lookback" feature. If it's
turned on on the server, Apache will look back through the URL until it
finds something which is a file, and then consider the remainder of the
URL parameters, which it provides to the file. Thus,
http://example.com/index.php/pepperoni/pizza
will end up at http://example.com/index.php with
pepperoni/pizza as
parameter, assuming that pepperoni and pizza are not files/directories
and index.php is not a directory.
The lookback feature can be turned on in the Apache configuration file,
which, on a public server, you have no access to.
Paul
--
Paul M. Foster