原因:
SEO,優化自己文章的搜索,實踐證明, /%postname%.html 的SEO是最好的,因爲標題和鏈接同時被搜索。
系統:
方法:
2) AllowOverride ALL
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
使用指令:a2enmod rewrite
4) 修改.htaccess爲:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
5) 重啓 apache2
使用指令:sudo /etc/init.d/apache2 restart
或:sudo service apache2 restart
6) 查看頁面即可