当前位置:网站首页>解决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>
就可以正常访问了
边栏推荐
- MySQL服务莫名宕机的解决方案
- Some tutorials install the database on ubantu so as not to occupy computer memory?
- Did you brush the real title of the blue bridge cup over the years? Come here and teach you to counter attack!
- Alternating merging strings of leetcode simple questions
- K210 learning notes (IV) k210 runs multiple models at the same time
- CA certificate trampled pit
- opencv 判断点在多边形内外
- [agc009e] eternal average - conclusion, DP
- Storage optimization of performance tuning methodology
- Blocking protocol for concurrency control
猜你喜欢

Database tuning solution

如何快速体验OneOS

Getting started with microservices (resttemplate, Eureka, Nacos, feign, gateway)

笔记本电脑蓝牙怎么用来连接耳机

Depth first DFS and breadth first BFS -- traversing adjacency tables

Metaverse Ape获Negentropy Capital种子轮融资350万美元

Technology cloud report: how many hurdles does the computing power network need to cross?

Alternating merging strings of leetcode simple questions

Business learning of mall order module

Postman核心功能解析-参数化和测试报告
随机推荐
FBO and RBO disappeared in webgpu
Meituan dynamic thread pool practice ideas, open source
Livelocks and deadlocks of concurrency control
FBO and RBO disappeared in webgpu
Getting started with microservices (resttemplate, Eureka, Nacos, feign, gateway)
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
极狐公司官方澄清声明
Granularity of blocking of concurrency control
Database recovery strategy
How to view Apache log4j 2 remote code execution vulnerability?
Comment développer un plug - in d'applet
Interprocess communication in the "Chris Richardson microservice series" microservice architecture
Blocking protocol for concurrency control
Oracle advanced query
MySQL服务莫名宕机的解决方案
等到产业互联网时代真正发展成熟,我们将会看待一系列的新产业巨头的出现
Sub total of Pico development
The simple problem of leetcode is to split a string into several groups of length K
Pl/sql basic syntax
What changes has Web3 brought to the Internet?