I have just updated a (dynamic) website by sftp/ssh and all the new pages have been considered as 404 error not found. Actually, all the pages, including the old pages which was overwritten.
Also, the website is using cloudflare.
Let me show you a curl of a url:
curl http://example.com/something/
HTTP/1.1 404 Not Found Date: Tue, 26 Jan 2016 01:25:08 GMT
Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked
Connection: keep-alive Set-Cookie:
__cfduid=de5a53a227295f9d9374fdf39bb45514f1453771507; expires=Wed,25-Jan-17 01:25:07 GMT; path=/; domain=.example.com; HttpOnly
X-Powered-By: PHP/5.5.29
X-Pingback: http://example.com/folder-wp-blog/xmlrpc.php
X-UA-Compatible: IE=edge
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache Set-Cookie:
PHPSESSID=c72b8d6fc18775ef85ac8ab1b8bf6e95; path=/ Server:
cloudflare-nginx
CF-RAY: 26a86c0ee0f10f15-IAD
As you can see, the curl returns a 404 error. BUT the a URL is live and working like a charm.
The problem is on cloudflare I thought. So, I "purge everything" when I curled before but the 404 still exist. I added a custom rule to bypass caching on cloudflare on a spesific url but it didn't work at all.
Also, I thought that was some mistake on my .htaccess and I erase everything from there. I restart the apache but the 404 are still exist.
As a result, every search engine and every other bot see a 404 header. The problem is everywhere, except on the /index.html and on the wordpress blog which is on a /folder-wp-blog/ folder. This WP wasn't changed at all. So, every other html and php file which is in root is flaged as 404...
Any ideas? solutions?