Forum Moderators: phranque
[edited by: phranque at 11:28 am (utc) on Jul 10, 2017]
[edit reason] exemplified urls for clarity (example.com isn't linked in this forum) [/edit]
RewriteCond %{REQUEST_URI} ^(/[^.]+\.php)
RewriteRule \.php/ https://www.example.com%1 [R=301,L]
Regardless of other circumstances, Google now has these imaginary URLs in its memory and will keep requesting them forever, so you need to redirect them to the intended form. This redirect will, sadly, have to remain in place for ever, even after the need for it has passed. Personally I wouldn't bother about the CSS unless Google is obsessively fond of your stylesheets. When you say "those paths probably don't exist on the server" that means the php page doesn't exist on the server? If so, then no it doesn't exist. I've never published them and when I look on the server they simply aren't there.
I'm not technical so I will need to take some time to digest and investigate what you suggest.
[edited by: phranque at 9:47 am (utc) on Jul 11, 2017]
[edit reason] unlinked urls for clarity [/edit]
I also republished the entire site on the 28th June, just before the 97 404 files were highlighted.