WordPress Custom Post Type Repeated 404 Errors

I do not know the specific path layout on your webserver, but the entries from the error log do not look to me that it is specifically wordpress related:

Invalid method in request \\n\\n

This error is caused by an invalid HTTP request. Each HTTP request has a method. Most certainly it was missing in the request that resulted in the log entry.

File does not exist: /var/www/vhosts/default/htdocs/tv2

A File does not exists message isn’t normally created when a PHP script returns 404 response headers. So most certainly, this error was not reported by WordPress but by the server itself. Probably the mod_rewrite configuration for your wordpress blog was unavailable.

Directory index forbidden by Options directive: /var/www/html/

This looks the same to me. If /var/www/html/ is the webroot of your blog, then this shows that index.php has not been found or wasn’t looked for as directory index by your webserver.


So in the end this looks very much like a webserver configuration issue to me. Permanently rebuilding permalinks wouldn’t help here either then. If you are unsure, you can make use of the Permafrost (WordPress Plugin). A related question regaring 404 errors and permalinks is: single-type.php not working, delivering 404.