Re: Redirecting to PHP script
| From: | Faisal Nasim | Date: | Wed, 21 Jun 2000 11:39:48 +0000 |
| Subject: | Re: Redirecting to PHP script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2476@lists.php.net to get a copy of this message | ||
Hi,
| Someone accesses a site using a url like www.mysite.org/john
|
| Now the resource (file or directory) "john" will not exist. What I want
| to do is to remap that url to a php script that does a database
| lookup on "john" and generates the site from a template.
<cut>
| Thanks for reading so far! Anyone any ideas on an elegant approach? Is
| this one that mod_rewrite could handle?
mod_rewrite will solve you problem!
http://www.apache.org/docs/mod/mod_rewrite.html
Enjoy!
Faisal