这是我的URLhttps://abc.com/project/projectfolder/public/
它的显示404找不到错误有两个.htacess一个在公共文件夹下,另一个在Project Folder下现在请让我知道该怎么办
这是.htacess
选项 关注Symlinks选项-Multiviews
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond
%{REQUEST_FILENAME} -d RewriteRule ^.*$ – [NC,L] RewriteRule ^.*$/index.php [NC,L]
在最后一个规则中指挥领先斜线:
RewriteRule ^.*$ index.php [NC,L]
使用以下内容,
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule !.(js|ico|gif|jpg|png|css)$ index.php