.htaccess - How to perform htaccess rewrite -
here summary of problem.
i have created facebook button. works correctly of time, not when following link somebody's actual "like" post. seems facebook adding more info url. instance, have
www.example.com/blog.php/6
but facebook adds
www.example.com/blog.php/6?fb_action_ids=10201090685057512&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=288381481237582
when user follows link mysql syntax error. if follow first link there no problem. thought strip off text url.
i created .htaccess file , placed in root directory on godaddy. tried several different rewrites.
nothing has worked. latest thought tried: options +followsymlinks
rewriteengine on
rewritecond %{query_string} ^(.*&)?fb_action_ids=
rewriterule ^(.*)$ $1?%1 [r=301]
do need change .htaccess file or there way solve problem?
thanks help.
Comments
Post a Comment