I have tried several ways,both using location and Host, putting the dot and the slash between brackets [.] [/] with (.*) and %1, but none of them works.
If I check with show stats http, the counter of static parse errors increments and I have only achieved counts in the headers rewritten counter when changing the requests from http://www.example.com to http://www.example.com/es/example/
Is there any issue for this feature to add slashes / to the link in the SSL service?
do you do ssl termination ?
If not, you can't modify the ssl content.
If yes, the procedure should be the same as for HTTP and you just add the ssl-proxy.