0
這個確切的.htaccess工作現場的服務器上,而不是在本地主機上(顯示了網絡結構頁),爲什麼呢?的.htaccess不會在本地主機上工作,但現場的服務器上做(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]
我做錯了什麼,但不知道是什麼,請幫助我。