On Sep 28, 2005, at 7:36 PM, Justin Zachan wrote: > A web user will search for an individual distributor via a number > of paths > which results in page for that distributor, but all the distributor > data > (there are about 80 or so) is dynamically populated from the > database with a > url like > > http://www.xxxxxxx.com.au/view_distributor.php?id=14&ajwilson > > What the client wants is something like... > > http://www.xxxxxxx.com.au/distributors/ajwilson.php > > So in summary they don't want a long php string like > "view_distributor.php?id=14&ajwilson" I'm no mod_rewrite wiz, so if somebody can confirm my syntax that would be great.... That being said, if you're on Apache, and can use mod_rewrite, then put this in your .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^distributors/(.+?) /view_distributor.php?id=14&$1 [L] This should take http://www.xxxxxxx.com.au/distributors/ajwilson and point it to http://www.xxxxxxx.com.au/view_distributor.php?id=14&ajwilson Some of the links others have already given will help decipher some of this for you.... :) Hope it's helpful. Steve