On Thu, Jul 23, 2009 at 10:28 PM, Dengxule <dengxule@xxxxxxxxx> 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. > > Best Wishes~ > > Deng > 09/07/24 > > > 2009/7/23 Ford, Mike <M.Ford@xxxxxxxxxxxxxx> > > > > -----Original Message----- > > > From: Paul M Foster [mailto:paulf@xxxxxxxxxxxxxxxxx] > > > Sent: 23 July 2009 06:13 > > > > > > On Thu, Jul 23, 2009 at 11:57:51AM +0800, ?????? wrote: > > > > > > > But I cannot help myself with the url pattern : > > > > /somepath_to_mediawiki/index.php/pagetitle. > > > > > > > > How can this kind of url be parsed to the file "index.php" and the > > > > "pagetitle" be parsed as params? > > > > > > > > Why the web server not go straight into path "index.php/" and look > > > for the > > > > file named "pagetitle" ? > > > > > > > > > > This type of thing is common for sites using the "MVC" or > > > "Model-View-Controller" paradigm. The index.php file is what's > > > called a > > > "front controller". A front controller is usually the entrance to > > > all > > > the other pages of a site. URLs like this often take advantage of an > > > Apache feature called "mod_rewrite", which tells Apache how to > > > handle > > > URLs which look like this. > > > > Or by the "pathinfo" mechanism, which I believe is also supported by > other > > Web servers, and can work just as well, if it satisfies your > requirements, > > without all the complications of mod_rewrite. > > > > > > Cheers! > > > > Mike > > -- > > Mike Ford, > > Electronic Information Developer,Libraries and Learning Innovation, > > Leeds Metropolitan University, C507, Civic Quarter Campus, > > Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom > > Email: m.ford@xxxxxxxxxxxxxx > > Tel: +44 113 812 4730 > > > > > > > > > > > > > > To view the terms under which this email is distributed, please go to > > http://disclaimer.leedsmet.ac.uk/email.htm > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > It could use a .htaccess file. Look in the directory of the index.php file for a file named .htaccess -- --Zootboy