RE: [PHP] User-friendly URI's
| From: | Jason Murray | Date: | Fri, 04 Jan 2002 00:07:06 +0000 |
| Subject: | RE: [PHP] User-friendly URI's | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79396@lists.php.net to get a copy of this message | ||
> "news" would actually be a PHP script, of course. I know how
> to handle /2002/01/02/keyword as parameters, my question is on
> making "news" be interpreted through PHP.
Off the top of my head...
You could either use a .htaccess to force Apache to recognise
"news" as a PHP script, or you could use a Custom 404 page to
figure out what the heck the original URL was trying to get at
and silently substitute in the resulting page.
A Custom 404 might be easier, but would have a bit more supporting
infrastructure at the code end for a big site.
Apologies if this is incorrect, I just may not be thinking
too clearly today :)
Jason