Re: mapping a directory to a script like a servlet

From: Date: Tue, 05 Oct 2004 15:08:07 +0000
Subject: Re: mapping a directory to a script like a servlet
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198678@lists.php.net to get a copy of this message
On Tuesday 05 October 2004 18:03, Roger Hyam wrote: > Hi, > > I hope some one out there can help me. I have been looking around for a > solution to this and just getting confused. > > I want to run a php script like it was a servlet. At the moment I have a > little application where the urls look like this: > > http://www.mysite.com/index.php?current_page=contact > > but I would like them to look like this: > > http://www.mysite.com/contact > > so I have mapped / to the index.php script and then pick up the remaining > path some how. > > I have done this kind of thing before with servlets and asp.net but can't > figure how to do it with Apache + PHP. I was looking at mod_rewrite but > then got scared! mod_rewrite is the easiest solution ;-) just don't get scared but read the man. > > Any help most welcome. > > Thanks, > > Roger -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) --------------------------------------------------------------------- Orbitel - the New Generation Telecom! See www.orbitel.bg.

Attachment: [application/pgp-signature] signature
« previous php.general (#198678) next »