这是我的分页网址,这是正确的 http://studycopter.com/feed/page/2/
但是当我点击链接然后重定向到 http://studycopter.com/page/2/
我检查每件事 喜欢 .htaccess文件 永久链接 网站网址 基本网址 也停用所有插件
但未解决问题
请帮助我!
答案 0 :(得分:0)
问题已解决
由于feed keyworrd发生问题 通过更改/wp-includes/canonical.php
//在代码
之前file = File.open("#{xml_device_path}")
xml_device_description.xml = file
file.close
//删除Feed后
// paging and feeds
if ( get_query_var('paged') || is_feed() || get_query_var('cpage') ) {
while ( preg_match( "#/$wp_rewrite->pagination_base/?[0-9]+?(/+)?$#", $redirect['path'] ) || preg_match( '#/(comments/?)?(feed/rss|rdf|atom|rss2)(/+)?$#', $redirect['path'] ) || preg_match( "#/{$wp_rewrite->comments_pagination_base}-[0-9]+(/+)?$#", $redirect['path'] ) ) {
// Strip off paging and feed
$redirect['path'] = preg_replace("#/$wp_rewrite->pagination_base/?[0-9]+?(/+)?$#", '/', $redirect['path']); // strip off any existing paging
$redirect['path'] = preg_replace('#/(comments/?)?(feed/rss2?|rdf|atom)(/+|$)#', '/', $redirect['path']); // strip off feed endings
$redirect['path'] = preg_replace("#/{$wp_rewrite->comments_pagination_base}-[0-9]+?(/+)?$#", '/', $redirect['path']); // strip off any existing comment paging
}
//more code
}