我在网站的子目录中有以下.htaccess文件,它允许我将所有的URL路由到index.PHP,在这里我可以解析它们.
@H_301_8@但是,它不允许我需要的网站的标准文件,例如css,javascript,png等
我需要改变什么(我假设在第四行)允许这些文件,以便他们不被路由到index.PHP?
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.PHP|public|css|js|png|jpg|gif|robots\.txt) RewriteRule ^(.*)$index.PHP/params=$1 [L,QSA] ErrorDocument 404 /index.PHP