Re: Re: User-friendly URI's
| From: | Philip Hallstrom | Date: | Fri, 04 Jan 2002 16:21:30 +0000 |
| Subject: | Re: Re: User-friendly URI's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79465@lists.php.net to get a copy of this message | ||
AddType application/x-httpd-php .php .php3 .whatever
-philip
On Fri, 4 Jan 2002, Jamie Fields wrote:
> How do you set up apache to recognize .whatever as a php extension?
>
> ----- Original Message -----
> From: "Philip Hallstrom" <philip@adhesivemedia.com>
> To: "Mike Eheler" <meheler@idearesource.com>
> Cc: <php-general@lists.php.net>
> Sent: Thursday, January 03, 2002 7:35 PM
> Subject: [PHP] Re: User-friendly URI's
>
>
> > You could always name the file "news.mike" and then tell apache that .mike
> > is a PHP extension :)
> >
> >
> >
> > -philip
> >
> > On Thu, 3 Jan 2002, Mike Eheler wrote:
> >
> > > 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.
> > >
> > > Mike
> > >
> > > Philip Hallstrom wrote:
> > >
> > > > Why not just make the script name "news.php" and not worry about it?
> > > >
> > > > On Thu, 3 Jan 2002, Mike Eheler wrote:
> > > >
> > > >
> > > >>A 404 ErrorDoc would still reply with a 404 code, which could mess up
> > > >>some search engines.
> > > >>
> > > >>I was thinking of the .htaccess solution, but I'm not sure if
> > > >>that's
> > > >>possible to force only certain files or perhaps all files in just a
> > > >>certain directory to all be application/x-httpd-php?
> > > >>
> > > >>I guess that would be the best solution. :)
> > > >>
> > > >>Or would it? What if I have an images/ subfolder.. I certainly
> wouldn't
> > > >>want all my images being thrown through PHP. That could cause some
> > > >>ugliness. So I guess it would have to be un-doable. Is it?
> > > >>
> > > >>Mike
> > > >>
> > > >>Jason Murray wrote:
> > > >>
> > > >>
> > > >>>>"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
> > > >>>
> > > >>>
> > > >>
> > > >>--
> > > >>PHP General Mailing List (http://www.php.net/)
> > > >>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > >>For additional commands, e-mail: php-general-help@lists.php.net
> > > >>To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
> > > >>
> > > >>
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>