Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.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
Apache 来自其他站点的错误URL?fb_xd_fragment=重定向_Apache_Url_Redirect - Fatal编程技术网

Apache 来自其他站点的错误URL?fb_xd_fragment=重定向

Apache 来自其他站点的错误URL?fb_xd_fragment=重定向,apache,url,redirect,Apache,Url,Redirect,我的日志中有一些URL,如: 我想将此URL重定向到 我该怎么做?使用此规则: RewriteEngine On RewriteCond %{QUERY_STRING} fb_xd_fragment= RewriteRule (.*) http://www.domain.com/$1? [R=301] 如果你实现了这一点,你就破坏了IE7用户的facebook小部件功能——有趣的是,我从来没有使用过IE7,所以我没有意识到这一点。(我不知道IE7还活着)

我的日志中有一些URL,如:

我想将此URL重定向到

我该怎么做?

使用此规则:

RewriteEngine On
RewriteCond %{QUERY_STRING} fb_xd_fragment=
RewriteRule (.*) http://www.domain.com/$1? [R=301]

如果你实现了这一点,你就破坏了IE7用户的facebook小部件功能——有趣的是,我从来没有使用过IE7,所以我没有意识到这一点。(我不知道IE7还活着)