Im having issues with // in requests so have used -
RewriteCond %{REQUEST_URI} ^(.)/{2,}(.)$ RewriteRule (.*) %1/%2
It tests correctly and does give a result changing the // to / but the destination page whilst served does not render correctly depending on the // position.
EG - https://www.brickfieldspark.org//data/greaterwaterboatman.htm renders correctly but - https://www.brickfieldspark.org/data//greaterwaterboatman.htm does not render -
I believe the served page image links - <a href="../images - are being mangled in some way ??, IE "jump back one level and go to images" is corrupted by the position of the //