Domanda

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.

enter image description here

È stato utile?

Soluzione

I 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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top