Remove hostname from request

Hi all,

I am trying to use the Generate Clean URLs functionality to remote the hostnames from our dynamic web requests in our services. They follow the format https://host-name:1234/api/url etc and I am currently using the regex ^https?://.*:\\d* to identify the first portion (https://host-name:1234) to remove it and just show the /api/url portion but when I add this as a regex it isn’t removed from the url in Dynamic Web Requests for the service, any ideas?

Hi @cameronduff

Instead, I recommend using a request naming rule with the content placeolder {URL:Path} as naming pattern like below :

Regards Aurélien.

Hi @cameronduff, did the workaround mentioned above help you? If you found another solution to your problem, we’d love to hear about it, too! Thanks!

Hi, yes this worked great thanks!

Thank you! This has worked great