PDA

View Full Version : Content negotiation with PHP


brothercake
05-01-2003, 12:40 PM
I want to use the 'clean' URLs approach advocated in this article (http://www.evolt.org/article/Making_clean_URLs_with_Apache_and_PHP/18/22880/index.html) but I just can't get it to work at all.

For example:

/index.php/param1/param2/

Always tries to open a nested folder "param2" - I want it to open index.php so I can explode the URI and retrieve the parameters. So how do I instruct PHP or Apache to do that?

Nightfire
05-01-2003, 08:11 PM
Not sure if I understand, but I'm gonna give it a shot...

If you have http://yourdomain/index.php/param1/param2/ it will look for a directory, due to the backslash. Try /index.php/param1/param2 and it should work.

brothercake
05-03-2003, 02:36 AM
No it didn't; but thanks anyway :)

I can get it to work with mod_rewrite - that'll do for now.

cheers