Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bad urls from other site ?fb_xd_fragment= redirect

I have in my log some URLS like:

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

I want to redirect this URL to

http://www.mysite.com/mypage

How can I do it?

like image 581
Ken Avatar asked Nov 06 '11 15:11

Ken


1 Answers

Use this rule:

RewriteEngine On
RewriteCond %{QUERY_STRING} fb_xd_fragment=
RewriteRule (.*) http://www.domain.com/$1? [R=301]
like image 197
Book Of Zeus Avatar answered Sep 21 '22 10:09

Book Of Zeus