Page is a not externally linkable
- Social Media
-- Facebook Marketing
---- Facebook Links now appending query strings?


ZydoSEO - 9:44 pm on Oct 20, 2012 (gmt 0)


If your web site is hosted on Apache, using Mod_Rewrite/.htacces it would be very easy to 301 redirect any FB Likes URLs back to clean URL.

You could use something like the following in the .htaccess in the root of your web to accomplish this:

RewriteBase /

RewriteCond %{QUERY_STRING} fb_action_ids [NC, OR]
RewriteCond %{QUERY_STRING} fb_action_types [NC, OR]
RewriteCond %{QUERY_STRING} fb_source [NC, OR]
RewriteCond %{QUERY_STRING} fb_aggregation_id [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Note: I'm just winging the above (it hasn't been tested). And I'm sure JDMorgan could come up with a much more elegant solution.

The solution above also assumes that the above code would get executed before any code you have implemented for triggering a 404 when a query string parameter is affected.


Thread source:: http://www.webmasterworld.com/facebook/4510190.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com