Are there rewrite rules in .htaccess of the root folder?
Random error is hard to debug, and we need at least some debug log for request results in 404, with rewrite log enabled, in order to look it further. It might have something to do with htaccess cache updating.
Is that possible to...