当前位置:网站首页>解决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>
就可以正常访问了
边栏推荐
- Blocking protocol for concurrency control
- Some tutorials install the database on ubantu so as not to occupy computer memory?
- Overview of concurrency control
- Oracle hint understanding
- Oracle triggers
- Pl/sql basic case
- Countdown to 92 days, the strategy for the provincial preparation of the Blue Bridge Cup is coming~
- Nacos 的安装与服务的注册
- QT creator 7-cmake update
- Serializability of concurrent scheduling
猜你喜欢

实战:fabric 用户证书吊销操作流程

Sentinel production environment practice (I)

Interprocess communication in the "Chris Richardson microservice series" microservice architecture

CA certificate trampled pit

Business learning of mall commodity module

Leetcode simple question: find the nearest point with the same X or Y coordinate

Database tuning solution

Win11运行cmd提示“请求的操作需要提升”的解决方法

Livelocks and deadlocks of concurrency control

极狐公司官方澄清声明
随机推荐
FBO and RBO disappeared in webgpu
K210学习笔记(四) K210同时运行多个模型
Type of fault
Postman核心功能解析-参数化和测试报告
Sparse array [matrix]
Matlab draws a cute fat doll
Sub total of Pico development
Summary of concurrency control
How to develop and introduce applet plug-ins
Metaverse Ape获Negentropy Capital种子轮融资350万美元
Alternating merging strings of leetcode simple questions
Getting started with microservices (resttemplate, Eureka, Nacos, feign, gateway)
[agc009e] eternal average - conclusion, DP
Web3为互联网带来了哪些改变?
Sentinel production environment practice (I)
"Chris Richardson microservices series" uses API gateway to build microservices
Solutions for unexplained downtime of MySQL services
等到产业互联网时代真正发展成熟,我们将会看待一系列的新产业巨头的出现
AD637使用筆記
70. Climbing Stairs. Sol