ThinkPHP搭建项目,访问时出现问题

注意:此解决方案只适用WAMP和LAMP

Not Found
The requested URL /index/index/signin.html was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

解决方案

在入口文件夹public下查看.htaccess是否存在。不存在则新建,存在的话,那内容替换为下面这串代码 就可以解决Not Fund


#<IfModule mod_rewrite.c>
#  Options +FollowSymlinks -Multiviews
#  RewriteEngine On
#
#  RewriteCond %{REQUEST_FILENAME} !-d
#  RewriteCond %{REQUEST_FILENAME} !-f
#  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

ThinkPHP报错The requested URL /index/index/xxx.html was not found on this server.相关推荐

  1. Not Found The requested URL /admin/index was not found on this server.

    问题描述:phpstudy V8下创建域名报错Not Found The requested URL /admin/index was not found on this server. Additi ...

  2. windows下apache报错The requested operation has failed解决方法

    2019独角兽企业重金招聘Python工程师标准>>> Apache报错The requested operation has failed,基本上是因为端口被占用.解决方法如下: ...

  3. ThinkPHP报错:Call to undefined function Think\C() in ThinkPHP/Library/Think/Think.class.php

    2019独角兽企业重金招聘Python工程师标准>>> ThinkPHP报错:Call to undefined function Think\C() in ThinkPHP/Lib ...

  4. ThinkPHP 报错页面信息泄露

    漏洞描述 ThinkPHP 是一个简易快捷,兼容性强的 OOP MVC PHP 框架,支持 UTF-8 和多种类型的数据库. ThinkPHP 报错页面存在漏洞,可能导致网站敏感信息泄漏. 修复方案 ...

  5. 解决报错Parameter 0 of constructor in XXX required a bean...elasticsearch 继承ElasticsearchConfiguration方法

    SpringBoot中构建带有含参构造函数的Bean,解决报错Parameter 0 of constructor in XXX required a bean ,elasticsearch继承Abs ...

  6. The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server

    在安装nagios完,后打开web界面,出现了  The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this serve ...

  7. kafka报错:creating broker listeners from xxx unable to parse xxx:9092 to a broker endpoint

    1.美图 2.背景 kafka报错:creating broker listeners from xxx unable to parse xxx:9092 to a broker endpoint 具 ...

  8. the android emulator process,Android studio报错:The emulator process for AVD (xxx) was killed

    背景:重做系统后重新配置Android studio 安装虚拟机后无法启动 log中显示为启动AVD的进程被杀 控制台显示为:在虚拟机列表里没有找到所要启动的AVD的名称 首先考虑是BIOS问题:发现 ...

  9. mysql 1033_mysql报错1033 Incorrect information in file: ''''xxx.frm''''问题的解决方法(图)...

    这篇文章主要介绍了关于mysql报错1033 Incorrect information in file: 'xxx.frm'问题的解决方法,文中通过示例代码介绍的很详细,需要的朋友可以参考借鉴,下面 ...

  10. springBoot使用RestTemplate报错:No instance available for xxx.xxx.xxx.xxx

    springBoot使用RestTemplate报错:No instance available for xxx.xxx.xxx.xxx 解决方案:添加配置类 解决方案:添加配置类 @Configur ...

最新文章

  1. TS - 处理故障的一些通用方法
  2. [C/C++标准库]_[初级]_[优先队列priority_queue的使用]
  3. 实在不好意思,最近写个项目,一直没时间来灌水
  4. 安装 | MatlabR2021bMac链接及Matlabx运行图基本运行代码与图像
  5. YII2集成GOAOP,实现面向方面编程!
  6. java使用教程——组件及事件处理——常用组件与布局
  7. 639. 解码方法 II
  8. 贪心策略——哈夫曼编码
  9. json替换table下的所有值_京东云所有地域正式支持 MySQL 8.0!
  10. Mac Sublime Text 3插件安装
  11. 离散数学 左孝凌-教材与习题解析-分享
  12. 非计算机专业计算机教学考试,论非计算机专业的计算机教学与等级考试
  13. c语言国二题库选择填空题,国二c语言笔试题库(含答案),选择填空.doc
  14. 简约个人竞聘简历PPT模板
  15. java 泛型 参数传递子类_超类的Java泛型,但并非所有子类都想定义类型参数
  16. Instagram登录使用教程目录
  17. identifier “ “ is undefined 错误
  18. OCR文字识别谁最好?4款拍照扫描应用横向对比
  19. python的下载安装以及两种打开方式
  20. [unity] build项目报错:Currently selected scripting backend (.NET)is not installed

热门文章

  1. 7月的尾巴,你是XXX
  2. 吕布机器人评测_999元的吕布机器人到底怎么样?听听玩家们怎么说
  3. 交换机设置环路导致网络瘫痪
  4. 基于Python实现的机器人自动走迷宫
  5. 计算机创造奇迹的英语作文,大学英语作文:创造奇迹-Creating-Miracle.docx
  6. OVER(PARTITION BY)使用方法
  7. python隐藏部分代码_python源码隐藏
  8. 关于grldr is missing
  9. 换个角度来看看C++中的左值、右值、左值引用、右值引用
  10. html中的超链接打不开,excel里超链接打不开怎么办