当前位置:网站首页>解决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>
就可以正常访问了
边栏推荐
- Business learning of mall commodity module
- Oracle hint understanding
- Storage optimization of performance tuning methodology
- 从零开始实现lmax-Disruptor队列(四)多线程生产者MultiProducerSequencer原理解析
- 科技云报道:算力网络,还需跨越几道坎?
- Platformio create libopencm3 + FreeRTOS project
- 航海日答题小程序之航海知识竞赛初赛
- Practice: fabric user certificate revocation operation process
- The difference between MVVM and MVC
- Platform bus
猜你喜欢

What if win11 is missing a DLL file? Win11 system cannot find DLL file repair method

科技云报道荣膺全球云计算大会“云鼎奖”2013-2022十周年特别贡献奖

"Chris Richardson microservices series" uses API gateway to build microservices

Performance monitoring of database tuning solutions

Blocking of concurrency control

2022软件测试工程师涨薪攻略,3年如何达到30K

Nacos installation and service registration

Matlab draws a cute fat doll

Alternating merging strings of leetcode simple questions

Cobaltstrike builds an intranet tunnel
随机推荐
[groovy] mop meta object protocol and meta programming (Introduction to groovyobject interface | introduction to metaclass | implementation of class methods using groovyobject invokemethod)
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
How to develop and introduce applet plug-ins
Sparse array [matrix]
Matlab draws a cute fat doll
Talking about MySQL index
The difference between MVVM and MVC
Database tuning solution
极狐公司官方澄清声明
How to add new fields to mongodb with code (all)
Interprocess communication in the "Chris Richardson microservice series" microservice architecture
What changes has Web3 brought to the Internet?
Unique occurrence times of leetcode simple questions
Draw a red lantern with MATLAB
Performance testing of software testing
344. Reverse String. Sol
[Chongqing Guangdong education] National Open University autumn 2018 0088-21t Insurance Introduction reference questions
Comment développer un plug - in d'applet
AD637 usage notes
Sentinel production environment practice (I)