wordpress - Remove fb_source from incoming URLs -
this first question here since find need know pretty quickly. i'm not familiar editing .htaccess, i'm rightly nervous doing so.
here's want find out. can remove after , including '?' incoming url?
effectivly turning: http://example.com/userful-info?fb_junk%20%13%69 into http://example.com/userful-info
in post had answered question removing appended info fb_action_ids following:
rewriteengine on rewritecond %{query_string} (^|&)fb_action_ids= rewriterule ^/?detail/link- %{request_uri}? [l,r=301]
this looks in realm, i'd remove appended info incoming urls. annoying since if shared appended info comes other sites aren't fb. disqus, twitter, tumblr.
i don't want twitter users sharing url site fb's info. doesn't create sense.
thank you, alex theberge
though break ability utilize query parameters throughout site (and since/if using wordpress, may nowadays issues wordpress functionality, "buyer beware"), next site presents solution may solve issue - http://briancray.com/posts/htaccess-hack-remove-url-query-strings/
what suggests in .htaccess
file before "# begin wordpress" section, include following:
rewriteengine on rewritecond %{query_string} !="" #if there 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
wordpress .htaccess
No comments:
Post a Comment