Re: [PHP] User-friendly URI's

2002-01-17 Thread Jonathan David Edwin Wright
Atcually, I#m doing it in Win2k/WinXP. To get the settings in the .htaccess file working, you need to make sure you've given permission for that directory to override a group of settings. I belive ForceType belongs to the group FileType (someone correct me if I'm wrong! :) Somewhere in httpd.

Re: [PHP] User-friendly URI's

2002-01-16 Thread Hasan
Hi, I was implementing this solution a while back. It works on Linux/Apache/PHP 4.0.6 but during testing on my Win2000/Apache/4.0.6 it doesn't. I think my php.ini are all aligned. Any thoughts? At 09:06 AM 1/4/2002, Jonathan David Edwin Wright wrote: >It's actually alot easier that you think! >

RE: [PHP] User-friendly URI's

2002-01-03 Thread Opec Kemp
TECTED]] > Sent: Friday, 4 January 2002 10:01 AM > To: [EMAIL PROTECTED] > Subject: [PHP] User-friendly URI's > > > http://www.somesite.com/news/2002/01/02/keyword > > I've seen some sites do this with other scripting languages (maybe even > PHP.. I just don&#

Re: [PHP] User-friendly URI's

2002-01-03 Thread Jonathan David Edwin Wright
It's actually alot easier that you think! for the news file, just create a file called 'news' (minus ' of course! ;) in your http root, then create (or append) a .htaccess with the following lines: ForceType application/x-httpd-php That tells Apache to parse news via PHP. As what you'v

RE: [PHP] User-friendly URI's

2002-01-03 Thread Jason Murray
> A 404 ErrorDoc would still reply with a 404 code, which could mess up > some search engines. Not true, try this: www.inww.com/ifdbnifoudbvfd This is actually produced by "ErrorDocument 404 /404.php3" in our Apache configuration, and 404.php3 is a PHP script that sends the neccessary stuff to

Re: [PHP] User-friendly URI's

2002-01-03 Thread Mike Eheler
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

RE: [PHP] User-friendly URI's

2002-01-03 Thread Jason Murray
> "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 cou

[PHP] User-friendly URI's

2002-01-03 Thread Mike Eheler
http://www.somesite.com/news/2002/01/02/keyword I've seen some sites do this with other scripting languages (maybe even PHP.. I just don't know).. I like the look of this *way* better. Anyone have any insight as to how I can make that work with an Apache 1.3.xx + PHP 4.1.x setup? "news" would