Page 1 of 1

Leading slashes lead to page not found.

Posted: Fri Jun 25, 2004 11:48 am
by ipb1024-ipb
Hello,

I was wondering if anybody could help me with php or apache configuration to tackle the leading slashes. I want to create SE friendly dynamic pages without using querystrings.

http://www.myserver.com/index.php/t20.html

How do I configure on my linux machine to make apache send the request to the php file (index.php). This works fine on windows xp. I am using apache and php (sapi dll).

On linux apache generates a page not found as the apache is actually looking for a file with name t20.html and treating index.php as a folder.

Any help would be appreciated.

Regards,
Pep

Posted: Fri Jun 25, 2004 12:13 pm
by Weirdan
Do you have Apache 2.0 installed on your linux box?

Posted: Fri Jun 25, 2004 12:57 pm
by ipb1024-ipb
Yep. I have Apache 2.0 installed on linux.

Posted: Sat Jun 26, 2004 3:27 pm
by Weirdan
then you need to add 'AcceptPathInfo On' to either your global config or .htaccess file. More information available here: http://66.102.9.104/search?q=cache:zISf ... .org&hl=en

Posted: Sun Jun 27, 2004 4:21 am
by ipb1024-ipb
Thanks very much Weirdan. It worked. :)