PDA

View Full Version : vBulletin 5 Request - Mod Rewrite for remove "fb_comment_id" from url


ZoLKoRn
11-06-2016, 04:27 PM
Hello all,

I have try to add facebook comment to thread and it work well but just one thing not work when we have go to that link from facebook notification because facebook has add some path into url which facebook comment ID (fb_comment_id=xxxxx_xxxxx) after going to any thread from facebook notification we the comment in fb-comment box will not appear caused the url is not same path

on my ideal now try to rewrite the url from .htaccess for remove "fb_comment_id" but I have try so many rule it redirect to www.domain.com/forum/index.php not the url of thread of I want

So it possible for do that with rewrite like www.domain.com/forums/754?fb_comment_id=123456_654321 to www.domain.com/forums/754 ?

Thank you for help

Dave
11-06-2016, 05:21 PM
<a href="http://www.yurtopic.com/tech/programming/remove-fb-action-id.html" target="_blank">http://www.yurtopic.com/tech/program...action-id.html</a> ?

ZoLKoRn
11-08-2016, 04:15 PM
Follow that link it wont's work the url still have ?fb_...._id

for the rule it seem be close to success is...

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

but it still have ?fb_...._id

Thanks for help and I will still looking ways for it :)

Dave
11-08-2016, 04:32 PM
Try this:

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

ZoLKoRn
11-08-2016, 05:31 PM
I'm sorry for stupid of typing !

Actually I will meaning ?fb_comments_id as full url

by the way from new rule you give me is still same you can try checking what you self with link below

original thread >> http://www.zolkorn.com/forums/forum/air-cooling/763-testing-for-fb-comment-redirect

after rewrite >> http://www.zolkorn.com/forums/node/763?fb_comment_id=1270966199592963_127096635625961 4

I have using code to call the current url by

data-href="http://www.zolkorn.com/forums/node/{vb:raw nodeid}"

Thank you :)