2009年8月31日星期一

[fw-mvc] disallow or redirect explicit reference to "index.php"

Hi Matt,

Is there a built-in way to disallow a user to explicitly type in
"index.php" at the application root or re-route them to the application
url without "index.php" specified?

For example, for my given application www.example.com, both
www.example.com and www.example.com/index.php show the same page. I'd
like to either disallow www.example.com/index.php or have the requests
redirect to their non-"index.php" counterparts.

Thanks in advance,
Yi

没有评论: