thinkphp执行流程错了吗?

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index1.php/$1 [QSA,PT,L]
</IfModule>

当我把重定向文件.htaccess故意写错,将index.php改 成index1.php,当但是当我在浏览器运行:
http://localhost/tp5.0.8/public也是可以正常运行

clipboard.png

但当我用pathinfo模式去运行时,报500错误,请问这个是回事?

阅读 2.8k
1 个回答

请先搞清楚apache和php的关系

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进