Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 显示卡片标题为302重定向的angular应用程序的Facebook机器人重定向_Angularjs_.htaccess_Facebook Opengraph_Meta Tags_Facebook Share - Fatal编程技术网

Angularjs 显示卡片标题为302重定向的angular应用程序的Facebook机器人重定向

Angularjs 显示卡片标题为302重定向的angular应用程序的Facebook机器人重定向,angularjs,.htaccess,facebook-opengraph,meta-tags,facebook-share,Angularjs,.htaccess,Facebook Opengraph,Meta Tags,Facebook Share,我关注这个博客 为了启用丰富的共享,通过更改我的.htaccess文件将facebook爬虫重定向到自定义的story.php 这是.htaccess文件 RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|Pinterest|Google.*snippet) RewriteRule ^(.*)$ http://www.website.com/story.php/$1 [NC,L] story.php和.ht

我关注这个博客 为了启用丰富的共享,通过更改我的.htaccess文件将facebook爬虫重定向到自定义的story.php

这是.htaccess文件

RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|Pinterest|Google.*snippet)
RewriteRule ^(.*)$ http://www.website.com/story.php/$1 [NC,L]
story.php.htaccess中的所有内容都运行良好,因为当我用另一个存在story.php的登台实例替换www.website.com时,瞧,它工作了,但当它涉及到相同的url时,它会在共享时重定向显示这个令人不安的图像

我用尽了所有类型的开放图元标记

property="og:title"
property="og:description"
property="og:image"
property="og:site_name"
property="fb:app_id"
任何帮助都会有帮助,因为将其重定向到另一个实例会在fb卡的标题中显示该实例的ip。不幸的是,没有标题元标记