I have an issue similar to this question Redirect URLs with a # in .htaccess
I'm trying to access Magento 2 api at /rest/all/V1/products/sku. This works for majority of products but some have a # symbol in their structure ie #123456 or #98754. I keep getting a Bad request returned form the server.
I'm unsure how to format the rewrite rule I wish to pass it through to the api but retain the # symbol. the Requested is created by Restsharp.
Rewritecond %{HTTP_HOST}/rest/all/V1/products/
RewriteRule #(.+)$ #$1 [L,NE]
RewriteRule \x23(.+)$ #$1 [L,NE]