Ubuntu下WordPress更新固定链接方法总结
原因:
SEO,优化自己文章的搜索,实践证明, /%postname%.html 的SEO是最好的,因为标题和链接同时被搜索。
千万不要改成 /%postname%/, 这样你的所有文章将不会被搜索引擎收录。系统:# BEGIN WordPressRewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# END WordPress
5) 重启 apache2
使用指令:sudo /etc/init.d/apache2 restart
或:sudo service apache2 restart
6) 查看页面即可