excuse the newbieness of this question. i've searched here and elsewhere and still not found a definitive answer.

i need to pass variables via the URL using slashes, thus: http://www.example.com/page=news/article=6

i'm using IIS. i've seen that it's easy using Apache because there are rewrite rules, can this also be achieved in IIS? unfortunately i'm on public servers so i don't have a choice of software and i'm also unable to install anything on the server. However the administrators there have said they may be able to change some settings for me.

i have two sites on different servers, one server is running php5+zend2.0, the other is running php4+zend1.3. both servers are on windows with IIS6 and CGI/FastCGI.

the most frustrating thing is that on the PHP5 server if i try "index.php/something=1" the page displays, but on the PHP4 server i get "No input file specified."

does anyone have any ideas where i need to begin with this?!

thank you!

    That is not very good.
    Because "/" is used as a separator of the URL itself.
    I dont think you should do this.

    In php.ini you can set what to use as arg_separator
    There are 2 settings. I think input argument separator is most important.
    arg_separator.input = "&"
    arg_separator.output = "&"

    I think you can use several:
    arg_separator.input = "?#&"
    will accept "?" "#" and "&" as separators

    Default is only &

    Read more:
    http://php.net/manual/en/ini.core.php

      thank you for your help! yeah i tried the arg_separator to no avail. yes that URL http://www.example.com/news/6 is what i'm trying to achieve.

      i would give up and assume it's an apache-only setting if it wasn't working on either server, but the fact that it's working on one of them is v.frustrating!

      will try posting in an IIS forum & post back here if i get anything..

      still open to ideas though if anyone has them..

      ta..

        this was fixed by setting cgi.fix_pathinfo to be "1" in php.ini

          Write a Reply...