0
我有這樣的htaccess:的Apache的.htaccess重寫
`
php_value error_reporting 6135
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php
<FilesMatch "\.(htaccess|htpasswd|inc|sh|pl|log|fla)$">
Order allow,deny
Deny from all
</FilesMatch>
`
所以它改寫未發現的index.php的任何文件。
我怎麼能不重寫jpg,gif,css和其他一些特殊的擴展名,因爲如果我試圖鏈接一個不存在的css文件,它會打開索引。 謝謝!
謝謝你,我剛剛嘗試過,但它不起作用 – markos
@markos:對不起。我編輯過它。 – n1xx1
現在,它的行爲是一種重定向,並在URL顯示/var/www/../index.php – markos