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
.htaccess
file causing the problem. Explanation posted below as an answer. – pjk_ok Commented Feb 8, 2021 at 3:06