I need to redirect all traffic with an URL including "#" character and replace the character by XYZ.
For example, a request to
needs to be redirected to
the # can be anywhere in the URL query
Is it possible to do it with an htaccess ? AFAIK it won't work with PHP because anything next to # is ignored by the script (unless you have something to suggest me)