htaccess remove parameter from querystring
Posted on 2011-05-02
I am trying to find a simple .htaccess snippet to rewrite URLs to remove a parameter from the URL.
The text that needs to be removed is ?fb_xd_fragment= or &fb_xd_fragment= which is usually found at the end of the querystring.
The rest of the url and query string (if there is one) needs to be unchanged.
[ NB - This is occasionally inserted at the end of urls due to a well documented bug in Facebook like/ comments box (NB - I am aware of the workaround to this issue that Facebook recommend- please do not suggest that. I am specifically looking for an .htaccess rewrite solution here). ]
Thanks for your help.