As indicated in a similar recent question, in order to have my WordPress blog remove automatically the parameter fbclid=xxxxxxxxx added by FB to all the links pointing to my blog, I inserted the following code to my .htaccess file, in the root of my domain:
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} "fbclid=" [NC]
RewriteRule (.*) /$1? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
The result is that who clicks the link on FB goes to the HOMEPAGE of the blog and NOT to the actual page the linked article is, as desired.
How to resolve this?
Update: I found the solution. I added the following to my htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.*)&?fbclid=(.*)$ [NC]
RewriteRule ^/?(.*)$ /$1?%1 [R=301,L]
</IfModule>