Re: Re: User-friendly URI's
| From: | php3 at developersdesk dot com | Date: | Fri, 04 Jan 2002 06:28:09 +0000 |
| Subject: | Re: Re: User-friendly URI's | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79426@lists.php.net to get a copy of this message | ||
Addressed to: Mike Eheler <meheler@idearesource.com>
php-general@lists.php.net
** Reply to note from Mike Eheler <meheler@idearesource.com> Thu, 03 Jan 2002 16:26:53 -0800
>
> That's the whole point of this thread.. that's what I want to avoid. I
> want to have a URI that is easier to remember, and less ugly, and also
> provides a sense of security (even if it is only a faint sense) through
> obscurity.
The .htaccess/httpd.conf solution is:
<Location /news>
ForceType application/X-httpd-php
</Location>
Now the file news in your DocumentRoot directory will be executed as a
php program, and anything that appears as directory and file names
after it will appear in $PATH_INFO. (I think that's where it appears
anyway. Check phpinfo() to be sure.)
It works very well.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com