当前位置:网站首页>解决thinkphp启动时“No input file specified”的问题
解决thinkphp启动时“No input file specified”的问题
2022-07-05 22:17:00 【沐言鸭】
解决thinkphp启动时“No input file specified”的问题
在学习thinkphp时,我们能够访问默认的index,但是新建的方法无法访问。
在网上查询相关资料得出,使用的PHP5.6是fast_cgi模式,而在某些情况下,不能正确识别path_info所造成的错误。
因此,我们要找到.htaccess文件,改成如下
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
就可以正常访问了
边栏推荐
- 数博会精彩回顾 | 彰显科研实力,中创算力荣获数字化影响力企业奖
- [agc009e] eternal average - conclusion, DP
- 2022-07-05: given an array, you want to query the maximum value in any range at any time. If it is only established according to the initial array and has not been modified in the future, the RMQ meth
- How to reverse a string fromCharCode? - How to reverse String. fromCharCode?
- AD637使用筆記
- The difference between MVVM and MVC
- 等到产业互联网时代真正发展成熟,我们将会看待一系列的新产业巨头的出现
- 2022软件测试工程师涨薪攻略,3年如何达到30K
- Type of fault
- Kubernetes Administrator certification (CKA) exam notes (IV)
猜你喜欢
Official clarification statement of Jihu company
K210学习笔记(四) K210同时运行多个模型
科技云报道:算力网络,还需跨越几道坎?
Analysis of the problem that the cookie value in PHP contains a plus sign (+) and becomes a space
Metaverse Ape猿界应邀出席2022·粤港澳大湾区元宇宙和web3.0主题峰会,分享猿界在Web3时代从技术到应用的文明进化历程
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
Meituan dynamic thread pool practice ideas, open source
Serializability of concurrent scheduling
Countdown to 92 days, the strategy for the provincial preparation of the Blue Bridge Cup is coming~
How to view Apache log4j 2 remote code execution vulnerability?
随机推荐
Kubernetes Administrator certification (CKA) exam notes (IV)
Type of fault
Sentinel production environment practice (I)
Blocking of concurrency control
70. Climbing Stairs. Sol
Database recovery strategy
Bitbucket installation configuration
Nacos installation and service registration
Character conversion PTA
Overview of concurrency control
What if the files on the USB flash disk cannot be deleted? Win11 unable to delete U disk file solution tutorial
元宇宙中的三大“派系”
Technology cloud report won the special contribution award for the 10th anniversary of 2013-2022 of the "cloud Ding Award" of the global cloud computing conference
1.3 years of work experience, double non naked resignation agency face-to-face experience [already employed]
Common interview questions of JVM manufacturers
Win11 runs CMD to prompt the solution of "the requested operation needs to be promoted"
How can Bluetooth in notebook computer be used to connect headphones
Web3为互联网带来了哪些改变?
When the industrial Internet era is truly mature, we will look at the emergence of a series of new industrial giants
2022-07-05:给定一个数组,想随时查询任何范围上的最大值。 如果只是根据初始数组建立、并且以后没有修改, 那么RMQ方法比线段树方法好实现,时间复杂度O(N*logN),额外空间复杂度O(N*