Avatar of Marthaj
Marthaj
Flag for United States of America asked on

IIS and using the Rewrite URL problem...

I am new to URL rewite module in IIS and can not seem to get my pattern correct;
Below is the URL that needs to be rewritten:

https://www.mmm.com/JACCC/clients/clientnbr?id=123

OR it can be

https://www.mmm.com/JACKK/clients/clientnbr?id=123

Open in new window


I need to redirect it to

https:/apps.mmm.com/JAZ/clients/clientnbr?id=123

Open in new window


I am stuck:

This is as far as I got with the pattern matching:
^www.mmm.com/([a-z,A-Z])/^JAC([j,a,c,J,A,C])/^clientnbr([a-z,A-Z])/^id([0-9])

Open in new window


And my rewrite URL is

https://apps.furry.com.DogLive/client/clientnbr?id={R:1}

Could someone help me please ??
* iis10Web ServersWeb DevelopmentMicrosoft IIS Web Server

Avatar of undefined
Last Comment
Marthaj

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
zc2

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Marthaj

ASKER
Thank you. It was confusing. But I learned a lot.  So basically, I just was to zero in on what would be the key element, in this case - JAC - for the pattern and if it has a querystring, check mark append query - kinda hard for me to explain my thoughts but I think I understand better.
Your help has saved me hundreds of hours of internet surfing.
fblack61