Home >Backend Development >PHP Tutorial >/brand/?do=xxx 可以访问 /brand?do=xxx 不能访问,如何控制

/brand/?do=xxx 可以访问 /brand?do=xxx 不能访问,如何控制

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:01:59863browse

/brand/?do=xxx 可以访问 /brand?do=xxx 不能访问,怎么控制?
/brand/?do=xxx 可以访问
/brand?do=xxx 不能访问

区别brand后面有一个 /  ,求大神点播!!!

------解决方案--------------------
/brand/?do=xxx 等於 /brand/index.php?do=xxx /brand/是文件夾

/brand?do=xxx  要看你的rewrite是怎樣寫的,估計等於 /brand.php?do=xxx

檢查看看文件是否存在。
------解决方案--------------------
/brand/?do=xxx 可以访问
/brand?do=xxx 不能访问

你想兩個都能訪問還是怎樣?
------解决方案--------------------
请贴出完整路径
------解决方案--------------------
浏览器会自动补齐
/brand?do=xxx ==》 /brand/?do=xxx

除非你的 brand 是虚拟目录,定义时强制后面有个 /

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn