Re: database calls with no ? in URL

From: Date: Fri, 21 Jul 2000 05:17:16 +0000
Subject: Re: database calls with no ? in URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7518@lists.php.net to get a copy of this message
Hi, If you use Apache you can use the RewriteRule module (see http://www.apache.org/docs/misc/rewriteguide.html). More below. "James M. Burton" wrote: > > i have a database driven site > > i currently pass a variable value in the url like this: > > http://ndpcaucus.sk.ca/bio/member.php3?mbrsurname=Addley > > this allows my script to make calls to the database > > the ? makes most crawlers skip these urls > > i want these pages crawled. i need to turn the variable into a file name. > > i want: > > http://ndpcaucus.sk.ca/bio/Addley.php3 RewriteRule ^/bio/(.*) /bio/member.php?mbrsurname=$1 [P] > > or > > http://ndpcaucus.sk.ca/bio/member.Addley.php3 > > i also have articles which are called with urls like: > > http://ndpcaucus.sk.ca/news/read.php3?id=119 > > i want: > > http://ndpcaucus.sk.ca/news/read.119.php3 > > or > > http://ndpcaucus.sk.ca/news/119.php3 RewriteRule ^/news/(.*).php3 /bio/news/read.php?id=$1 [P] Ciao, Andreas

« previous php.general (#7518) next »