在Apache2.4.7中,我已經(jīng)加載了rewrite模塊,并且apache2.conf中<Directory /var/www/>? ? ? ? Options Indexes FollowSymLinks? ? ? ? AllowOverride ALL? ? ? ? Require all granted</Directory>的AllowOverride也設(shè)置成了ALL,之后把寫好的.htaccess上傳,.htaccess內(nèi)容如下:RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond $1 !^(index\.php|images|robots\.txt)RewriteRule ^(.*)$ /index.php/$1 [L]但是一打開網(wǎng)頁就顯示500錯誤。這是為什么呢?
添加回答
舉報
0/150
提交
取消