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

2021/5/10 12:27:22

本文主要是介绍ThinkPHP报错 The requested URL /admin/index/login.html was not found on this server.,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

 

 

 

 

 

 

解决方案
在入口文件夹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.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程