Alex Theberge
Forum Replies Created
-
Thank you for your response.
I created one anyhow.
Cheers!UPDATE!
Here is an even easier alternative:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^page=1$ #Checks for a query
RewriteRule (.*) $1? [R=permanent] #removes it and makes a permanent redirect
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress,
Cheers!
-AlexOkay so here’s what I found. This causes some other issues in wordpress queries, but I’m looking further into that. So far this is the best answer and I’m pleased with how it works. Word of caution, read the following post entirely first!
Written by Brian Cray on March 18th, 2010
“… query strings mess up things. On many social sharing sites, if I share https://briancray.com/ and someone else shares https://briancray.com/?query, the score will be attributed to two unique URLs instead of being recognized as the same URL.”RewriteEngine On
RewriteCond %{QUERY_STRING} !="" #if there is a query string
RewriteCond %{QUERY_STRING} !^p=.* #wordpress users: allow post tempalinks
RewriteCond %{REQUEST_URI} !^/wp-admin.* #wordpress users: don't break admin
RewriteRule ^(.*)$ /$1? [R=301,L] #remove query string
Hope this helps someone else!
-Alex.The URLs are different. The Facebook debugger sees that there is a difference if you setup open-graph correctly, but still treats the ?fb_source=pubv1 URL differently. Especially if that URL is shared to other social platforms, then it’s a useless URL that breaks track-backs.
Even though the additional garbage at the end of the URL displays the page correctly it’s a huge caveat when people reshare from that URL to any other social platform. That ?fb_source=pubv1 becomes useless.Okay Mr. Herve,
If someone clicks on the URL appended with the ?fb_source=pubv1 addition then shortens the link to twitter, is twitter going to treat the link as a correct back-link to my site? OR will my site, more than likely, treat it as a different/seperate URL? The same applies to all other sites that share this appended version of my purposely specified URL.
I will have to use another service until this is resolved. I don’t want linters parsing info from the wrong URL unless you can tell me that the appended and normal URLs are treated interchangeably across all platforms and search engines?
I specify a conical URL for a reason; this should be an optional addition. Will it be?
Perhaps I can modify my .htaccess file to drop the added info. I’ll post what I discover.
It does cause issues for me.
Is there a way to turn it off?Hello! The issue still exists with ?fb_source=pubv1 appending at the end of links on FB through WP publicize. This is quite annoying because the incorrect URL is carried over to other profiles/pages when shared. Then if you click the link from FB to my site and use the FB comment system it quickly proliferates the incorrect URL online. The kicker is that if the correct URL is shared it’s treated like a whole new post on FB.
Any word about a fix would be awesome.
FB Example link: https://www.facebook.com/SweetXposure/posts/394110754020348
Website:
https://sweetxposure.com/dancing-with-the-realtors-2013/