-1

I would like to use the flag B in the rewrite to ensure any space or special character is escaped

RewriteRule "^/(.*)" "https://mydomain/dahqhhq/opendoc.htm?document=toto toto.qvw&lang=en-EN&host=TOTO@host" [R,L,B]

But this does not work, I still have this error

Rewritten query string contains control characters or spaces

the result I want in my browser:

https://mydomain/dahqhhq/opendoc.htm?document=toto%20toto.qvw&lang=en-EN&host=TOTO%40host

can anyone help best regards,

Diogène
  • 59
  • 1
  • 4
  • Can you try `document=toto toto.qvw` or `document=toto%20toto.qvw`? (I never remember how to encode spaces :-)) – Marc Le Bihan Aug 25 '23 at 12:08
  • Thank for you reply @MarcLeBihan I have tried and it gave me this: `https://mydomain/dahqhhq/opendoc.htm?document=toto&%23x20toto.qvw&lang=en-EN&host=TOTO@host` and with document=toto%20toto.qvw I have _italic_ `https://mydomain/dahqhhq/opendoc.htm?document=toto0toto.qvw&lang=en-EN&host=TOTO@host` – Diogène Aug 25 '23 at 12:21
  • Humm... Try `document=toto%32toto.qvw` – Marc Le Bihan Aug 25 '23 at 12:25
  • @MarcLeBihan With toto%32toto.qvw I get `document=toto20toto.qvw` I want `document=toto%20toto.qvw` – Diogène Aug 25 '23 at 12:41

0 Answers0