Re: Best Practice to Create Dynamic URL's- With Username

From: Date: Mon, 21 Sep 2009 08:40:17 +0000
Subject: Re: Best Practice to Create Dynamic URL's- With Username
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-298215@lists.php.net to get a copy of this message
Hi, > ... As has been suggested you could use mod_rewrite, but you don't have to if your needs are simple (or maybe you don't have it). You could also use the ForceType directive. Eg on my website the URLs are like this: http://www.phpguru.org/article/20-years-of-php Where "article" is actually a PHP file without the .php extension. It's forced to run as a PHP file using this: <Files article > ForceType application/x-httpd-php </Files> And you will find the URL in $_SERVER somewhere. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 5th September) Lots of PHP and Javascript code - http://www.phpguru.org

« previous php.general (#298215) next »