解决phpstudy8.1配置好tp项目后运行报错:# NOT FOUND The requested URL was not found on this se

124 阅读1分钟

image.png

在网站-》管理-》伪静态里面添加以下路由重写配置即可

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>