Making /something/blah work instead of /something.php/blah

From: Date: Wed, 05 Feb 2003 01:55:23 +0000
Subject: Making /something/blah work instead of /something.php/blah
Groups: php.general 
Request: Send a blank email to php-general+get-134363@lists.php.net to get a copy of this message
Hi, I did a bit of googling for this, but I was unsure on what to google for, so I came up with nothing :( Anyway I have a 3 servers, windows, freeBSD, and my web hosts. I have used the following style URLs for many of my scripts, ie: www.mysite.com/something/blah/blah/blah where something is actually something.php and then I just parse out the blahs... This has worked on my webhost and my windows box without any special tweaks. I have no recently set up a freeBSD server with php and everything runs great, but I only noticed today that it doesn't accept these kind of URL and instead returns a 404 /something/blah/blah/blah is not found. If I try www.mysite.com/something.php/blah/blah/blah It works as expected, but I don't really want to keep the .php in the URL (just to make things look prettier/smaller).... So I was wondering if anyone knows what I need to change on my default apache+php install. Here are my versions: WinXP + Apache 1.3.27 + PHP 4.3.0 (Works Here) FreeBSD 4.7 + Apache 1.3.27 + PHP 4.2.3 (Fails Here) WebHost some BSD + Apache 1.3.22 + PHP 4.1.0 (Works Here) Thanks for any help or links to useful pages. Andrew

« previous php.general (#134363) next »