Re: PHP intreprets trailing slashes incorrectly?
| From: | Hans Åhlin | Date: | Thu, 19 May 2011 19:14:06 +0000 |
| Subject: | Re: PHP intreprets trailing slashes incorrectly? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312924@lists.php.net to get a copy of this message | ||
2011/5/19 Scott Baker <bakers@canbytel.com>:
> 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
**********************************************