No-DB-URL-Shortener icon indicating copy to clipboard operation
No-DB-URL-Shortener copied to clipboard

How to remove fbclid parameter

Open salahjaafar opened this issue 3 years ago • 3 comments

How to remove fbclid added by facebook all links issued by facebook are redirected to the 404.php page Screen-Shot-2020-09-08-at-12 24 24-PM

salahjaafar avatar Jan 29 '22 08:01 salahjaafar

Hi @salahjaafar, thanks for the note. I'm not able to look into it at the moment, but if you want to try and fix it, feel free to do so and submit a pull request.

kimili avatar Feb 12 '22 18:02 kimili

ok thank you for your efforts, i will try to solve this problem

salahjaafar avatar Feb 12 '22 20:02 salahjaafar

I modified the .htaccess file with these lines, and it's working correctly:

RewriteEngine On
RewriteBase /

# Redirect URLs containing the "fbid" parameter
RewriteCond %{QUERY_STRING} (^|&)fbid= [NC]
RewriteRule ^ %{REQUEST_URI}? [R=301,L]

# Handle the link creation bits
RewriteRule ^create.*$ /index.php?create=true [QSA,L]
RewriteRule ^delete.*$ /index.php?delete=true [QSA,L]

# A catch-all for any items not found
ErrorDocument 404 /index.php

salahjaafar avatar May 28 '23 16:05 salahjaafar