Hi,
C++ script "script.exe" processes requests on a web site
I am changing ordinary parameter strings like &l1=en&l2=de... to more decent /en/de/...
Parameters are 2-letter language codes
When IIS receives requests like domain.com/en/ru/... it should pass them to the script and not treat them as subfolders
It seems a redirection of requests starting with 2-letter language codes to the script will do the job:
domain.com/en/ru/code -> domain.com/script.exe
domain.com/en/code -> domain.com/script.exe
domain.com/de/en/kraft -> domain.com/script.exe
There are hunderds of language codes so it's better to consider any two letters in slashes after domain name as a trigger for this redirect
It looks the script can access original parameters (QUERY_STRING) so probably it's not necessary to add them again, IIS should just call the script
I am new to IIS rewrites so any ideas are welcome