0
この正確な.htaccessはライブサーバで動作しますがlocalhostでは動作しません(Web構造のページを表示します)。.htaccessはlocalhostでは動作しませんが、ライブサーバでは(htaccessオーバーライドがオン)
RewriteEngine On
# RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(css|js|icon|zip|rar|png|jpg|gif|pdf)$ /public/index.php [L]
この.htaccessファイルは両方で動作します:私は何か間違ったことをやっている、しかし、私を助けてくださいかわからない
RewriteEngine On
# RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(css|js|icon|zip|rar|png|jpg|gif|pdf)$ index.php [L]
。