This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Facebook comment sh*t :)
Author
Message |
Djive
Groupie


Joined: 06 June 2006
Posts: 43
Posted: 06 September 2011 at 7:20am

Facebok added some thing in urls.. when clicking on comments links

http://domain.com/some/thing/new-text-about-news?fb_comment_id=fbc_10150288526035050_19220968_10150359102705050

when some one clicks he get 404 on my site...

hot ot remove..  ?fb_comment_id=fbc_10150288526035050_19220968_10150359102705050

so when someone click on first link on facebook

get to this url  http://domain.com/some/thing/new-text-about-news
Back to Top Visit Djive's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 06 September 2011 at 7:38am

Let's try the following code:

RewriteBase /
RewriteCond %{QUERY_STRING} ^fb_comment_id= [NC]
RewriteRule (.*) $1? [NC,R=301,L]

__________________
Regards,
Anton
Back to Top
 
Djive
Groupie


Joined: 06 June 2006
Posts: 43
Posted: 06 September 2011 at 7:56am

Thank you very much, works well :)

Hava a nice day
Back to Top Visit Djive's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version