当前位置:网站首页>解决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>
就可以正常访问了
边栏推荐
- 如何開發引入小程序插件
- Platformio create libopencm3 + FreeRTOS project
- 实战:fabric 用户证书吊销操作流程
- Performance monitoring of database tuning solutions
- How to develop and introduce applet plug-ins
- Interview questions for famous enterprises: Coins represent a given value
- Implementing Lmax disruptor queue from scratch (IV) principle analysis of multithreaded producer multiproducersequencer
- Granularity of blocking of concurrency control
- Advantages and disadvantages of the "Chris Richardson microservice series" microservice architecture
- Three "factions" in the metauniverse
猜你喜欢

ESP32 hosted

Sentinel production environment practice (I)

Implementation technology of recovery

Leetcode simple question: the minimum cost of buying candy at a discount

Database recovery strategy

Analysis of the problem that the cookie value in PHP contains a plus sign (+) and becomes a space

How to view Apache log4j 2 remote code execution vulnerability?

Leetcode simple question: check whether each row and column contain all integers

Metaverse Ape获Negentropy Capital种子轮融资350万美元
![[groovy] groovy dynamic language features (automatic type inference of function arguments in groovy | precautions for function dynamic parameters)](/img/ab/086c7455706eecc467eef92c660803.jpg)
[groovy] groovy dynamic language features (automatic type inference of function arguments in groovy | precautions for function dynamic parameters)
随机推荐
Blocking of concurrency control
Leetcode simple question: the minimum cost of buying candy at a discount
Stored procedures and stored functions
90后测试员:“入职阿里,这一次,我决定不在跳槽了”
Overriding equals() & hashCode() in sub classes … considering super fields
2022软件测试工程师涨薪攻略,3年如何达到30K
Leetcode simple question: find the nearest point with the same X or Y coordinate
Practice: fabric user certificate revocation operation process
Search: Future Vision (moving sword)
A trip to Suzhou during the Dragon Boat Festival holiday
Form artifact
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
MySQL连接断开报错MySQLdb._exceptions.OperationalError 4031, The client was disconnected by the server
等到产业互联网时代真正发展成熟,我们将会看待一系列的新产业巨头的出现
What if win11 is missing a DLL file? Win11 system cannot find DLL file repair method
700. Search in a Binary Search Tree. Sol
[agc009e] eternal average - conclusion, DP
When the industrial Internet era is truly mature, we will look at the emergence of a series of new industrial giants
科技云报道荣膺全球云计算大会“云鼎奖”2013-2022十周年特别贡献奖
Shelved in TortoiseSVN- Shelve in TortoiseSVN?