Facebook comments breaking url ?fb_comment_id=xxxx


Facebook comments breaking url ?fb_comment_id=xxxx



I have problem on facebook wall I have a link to comment


http://loza.....pl/nowe/item/953-5-min-przed-koncem-swiata.html?fb_comment_id=fbc_10150440148781931_20104033_10150440188111931#f15a26d354fc36e -



facebook added something to url and comments are not visible...



When you go directly to:


http://loza.....pl/nowe/item/953-5-min-przed-koncem-swiata.html



everything is fine, fb comments are visible so I want to make a rewrite rule... on htaccess



any help...pls





Did you solve it? I'm facing the same problem now.
– shem
Oct 9 '12 at 13:12





possibly duplicate: stackoverflow.com/questions/8452529/…
– shem
Oct 9 '12 at 13:36




2 Answers
2



Try something like this:


RewriteCond %{QUERY_STRING} (^|&)fb_comment_id=
RewriteRule ^(.*)$ $1? [L]



If the querystring contains a fb_comment_id, the visitor will be redirected to the requested page, but the full query string will be discarded.





nope, didn't work the same url nothing changed, more ideas?
– pogz
Dec 28 '11 at 20:37


RewriteCond %{QUERY_STRING} (.*)(^|&)fb_[^&]+(.*)$
RewriteRule ^(.*) $1?%1 [R=301,NE,L]






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Boo (programming language)

How to make file upload 'Required' in Contact Form 7?