Bad urls from another site? fb_xd_fragment = redirection

There are several urls in my log:

http://www.mysite.com/mypage/?fb_xd_fragment=

I want to redirect this url to

http://www.mysite.com/mypage

How can i do this?

+6
source share
1 answer

Use this rule:

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

Source: https://habr.com/ru/post/900886/


All Articles