Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Nov 2016, 17:27
ZoLKoRn ZoLKoRn is offline
 
Join Date: Mar 2015
Mod Rewrite for remove "fb_comment_id" from url

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
Attached Images
File Type: jpg Clip_5.jpg (27.3 KB, 9 views)
File Type: jpg Clip_6.jpg (11.1 KB, 4 views)
Reply With Quote
  #2  
Old 06 Nov 2016, 18:21
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
http://www.yurtopic.com/tech/program...action-id.html ?
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 08 Nov 2016, 17:15
ZoLKoRn ZoLKoRn is offline
 
Join Date: Mar 2015
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
Reply With Quote
  #4  
Old 08 Nov 2016, 17:32
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Try this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 08 Nov 2016, 18:31
ZoLKoRn ZoLKoRn is offline
 
Join Date: Mar 2015
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/...mment-redirect

after rewrite >> http://www.zolkorn.com/forums/node/7...70966356259614

I have using code to call the current url by


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thank you
Reply With Quote
Reply


Tags
facebook, facebook comment, rewrite


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:12.

Layout Options | Width: Wide Color: