我刚安装了一个wordpress博客,它将作为一个静态网站的独立博客。博客完成后,当我查看它全部显示正常....直到一个固定链接(查看单个帖子)被点击。点击后,用户被重定向到主页。我相信htaccess文件造成这种情况。您可以通过查看博客网站来试试这个:http://nathantrotter.com/blog/htaccess预防Wordpress永久链接
这是我的htaccess文件(从该网站的根目录,wp博客目录没有)...我是否需要创建另一行使博客永久链接工作?如果是这样,什么?
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^admin$ admin/index.php
RewriteRule ^products/([A-Za-z0-9_-]+)$ /index.php?p=products&metal=$1
RewriteRule ^services/([A-Za-z0-9_-]+)$ /index.php?p=services&sub=$1
RewriteRule ^about/([A-Za-z0-9_-]+)$ /index.php?p=about&sub=$1
RewriteRule ^facilities/([A-Za-z0-9_-]+)$ /index.php?p=facilities&sub=$1
RewriteRule ^press/([0-9]+)/([A-Za-z0-9_-]+)$ /viewPress.php?id=$1
RewriteRule ^([A-Za-z0-9_-]+)$ /index.php?p=$1
就像添加一个新的自定义帖子类型,重置WP永久链接修复了这个...不知道为什么,但它的工作! – JCHASE11 2012-08-08 13:15:45