> -----Original Message----- > From: Xavier de Lapeyre [mailto:xavier@xxxxxxxxxxxxxxx] > Sent: Friday, February 22, 2008 2:09 AM > To: php-general@xxxxxxxxxxxxx > Subject: URL modification > Importance: High > > Hi all, > > I saw on some websites that modifies the links to access the webpages. > > Something like: > http://www.example.com/login/ > instead of > http://www.example.com/login.php > > Does anyone knows how this works or how its call / which PHP library > performs this action? > > > Xavier de Lapeyre That's called "URI/URL Routing" and it's usually performed as part of every MVC Framework I know of (CodeIgniter, CakePHP, Symfony, Zend Framework... just to name a few). It's usually implemented through Apache's mod_rewrite module, but you can get close without that module, if you allow for something like: http://www.example.com/index.php/myaccount/profile (that is, you don't need mod_rewrite unless you want to remove the index.php part of the URI path) However, if you have an existing website, migrating it to use one of the MVC frameworks (or just using a stand-alone URI Routing class) may not be the path you want to follow. Regards, Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 | Email: info@xxxxxxxxxxxxx | MSN Chat: best@xxxxxxxxxxxxx | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php