更新时间:2023-09-17 12:11:46
艾森海姆,这是htaccess的问题:在您的Web项目的根文件夹中获得一个 .htaccess
文件.
Eisenheim, this is htaccess issue: get one .htaccess
file in root folder of your web-project.
并将以下代码放入其中,
And put the following code inside it,
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
然后尝试在没有 index.php
的情况下,它应该可以完美运行.
Then try without index.php
it should work perfectly.