admin管理员组文章数量:1310283
I have a custom theme and when I try to export the posts for the custom post type called 'news' via Dashboard > Tools > 'News' > Download Export File
(image attached) I get a 403 'Forbidden' message on my localhost set up. On the live site I get a 404 error.
Does anybody know how to correct this issue?
Thanks in advance for an assistance.
I have a custom theme and when I try to export the posts for the custom post type called 'news' via Dashboard > Tools > 'News' > Download Export File
(image attached) I get a 403 'Forbidden' message on my localhost set up. On the live site I get a 404 error.
Does anybody know how to correct this issue?
Thanks in advance for an assistance.
Share Improve this question asked Feb 5, 2021 at 4:18 pjk_okpjk_ok 9082 gold badges15 silver badges36 bronze badges 4 |1 Answer
Reset to default 0I found the solution to this problem. It was the security code below that I had in my .htaccess file that was being used to stop author scans of my site. On removing this I could then export any type of post with the export tool.
# BEGIN block author scans
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=\d+) [NC]
RewriteRule .* - [F]
# END block author scans
本文标签: 404 errorCan39t Export Custom Post Types With Export Tool In A Custom Theme
版权声明:本文标题:404 error - Can't Export Custom Post Types With Export Tool In A Custom Theme 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741767643a2396557.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
.htaccess
file causing the problem. Explanation posted below as an answer. – pjk_ok Commented Feb 8, 2021 at 3:06