Re: PHP intreprets trailing slashes incorrectly?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/5/19 Scott Baker <bakers@xxxxxxxxxxxx>:
> I have a script:
>
> http://www.perturb.org/index.php
>
> I accidentally put a trailing / on the url and it STILL loaded:
>
> http://www.perturb.org/index.php/
>
> Is that a bug in URL interpretation? I've tried it on three servers and
> all seem to have the same behavior. All three were Apache on Linux, but
> different versions as far back as PHP 5.2.x.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

This is not PHP related.
This probably works because of Apaches support for mod_rewrite.

ie, http://www.example.com/virtual_dir/script/option/?Foo=bar  -->
/my_script.php?Foo=bar

-- 


**********************************************
ÂHans Ãhlin
ÂÂ Tel: +46761488019
ÂÂ icq: 275232967
ÂÂ http://www.kronan-net.com/
ÂÂ irc://irc.freenode.net:6667 - TheCoin
**********************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux