编程语言
首页 > 编程语言> > ThinkPHP The requested URL /admin/index/login.html was not found on this server.

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

作者:互联网

1.创建网站到入口文件目录public下

 使用工具phpstudy(工具不限)

 

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

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

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

 

3.通过域名直接访问:如tpstu.ir(取决于步骤1网站域名)

标签:requested,index,admin,FILENAME,html,ThinkPHP,RewriteCond,was
来源: https://www.cnblogs.com/wlei5206/p/16341597.html