Forum Moderators: coopster

Message Too Old, No Replies

/script.php/foo/: "The page cannot be found"

Working on Microsoft IIS, it works Ok with '/script.php'

         

guarriman

4:33 pm on Jan 13, 2006 (gmt 0)

10+ Year Member



Hi.

Working with 'Windows Server 2003' + 'IIS 6.0' + 'PHP 4.3.11', I'd
like to use:
[foo.com...]

I created this 'script.php':
--------
<?
$myUrl = $_SERVER['PATH_INFO'];
print "<li>$myUrl\n";
?>
---------

It works OK with 'foo.com/script.php', but when trying
'foo.com/script.php/john/23/', I get this 404 error message:
-------
The page cannot be found
The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable.
---------

Is it possible to work with these kind of scripts and IIS?

Thank you very much.

guarriman

6:04 pm on Jan 13, 2006 (gmt 0)

10+ Year Member



As far as I know, ASP.NET does URL mapping, but only for filetypes like 'aspx', 'ascx', etc.

Could I implement it to fix my problem?

coopster

10:31 pm on Jan 13, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It's been a long, long time since I've used IIS so I would not know where to start. It seems as though some form of 'Content Negotiation' method would need to be invoked but I have no idea how to do so using IIS. If you can't find it in Microsoft's support help or IIS help you may want to try the WebmasterWorld Microsoft Related - .NET and ASP [webmasterworld.com] Forum.