php - Facebook Debugger returns 404 but curl works -


i used facebook debugger check page , shows me response code 404 me works.

curl works

i tested browser , curl (from other server). , post return http/1.1 200 ok:

curl -i http://www.mypage.de/stuff/test.html curl -i -x post http://www.mypage.de/stuff/test.html 

page valid

i check test.html using http://validator.w3.org/ , got this document checked xhtml + rdfa!

response header

accept-ranges:bytes connection:keep-alive content-encoding:gzip content-length:497 content-type:text/html date:mon, 10 mar 2014 16:13:15 gmt etag:"28a0b29-353-4f4429866eebc" keep-alive:timeout=5, max=99 last-modified:mon, 10 mar 2014 15:52:48 gmt server:apache/2.2.22 (debian) vary:accept-encoding 

why facebook 404?

update

if @ access logs request reach server 404 access come default instead of correct virtual host.

if use ip in facebook instead of dns works normal.

you should check server logs if have hit

facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php) 

its .htaccess blocking facebook crawler.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -