码迷,mamicode.com
首页 > Web开发 > 详细

ThinkPHP报错 The requested URL /admin/index/login.html was not found on this server.

时间:2021-05-24 04:03:07      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:file   index   技术   php   dmi   load   server   nbsp   文件   

 

技术图片

 

 

 

 

 

 

解决方案
在入口文件夹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>
————————————————
版权声明:本文为CSDN博主「HandShakers」的原创文章。
原文链接:https://blog.csdn.net/qq_42940241/article/details/112461625

ThinkPHP报错 The requested URL /admin/index/login.html was not found on this server.

标签:file   index   技术   php   dmi   load   server   nbsp   文件   

原文地址:https://www.cnblogs.com/summerGraden/p/14749950.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!