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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM