0

我尝试从此链接中删除/重定向查询字符串:

http://www.myDomain.com/detail/link-526.html?fb_action_ids=10151931158951677&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=288381481237582

要获取此链接:http ://www.myDomain.com/detail/link-526.html

任何帮助将不胜感激,谢谢。

4

1 回答 1

0

Try adding this in the htaccess file in your document root:

RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)fb_action_ids=
RewriteRule ^/?detail/link- %{REQUEST_URI}? [L,R=301]

Note that this redirects the browser if there's facebook query string stuff without any of it, but if the content of your page keeps adding it, the redirecting might loop.

于 2012-11-06T17:58:21.203 回答