Question

I'm building an isapi filter that will grab any url requests with the prefix "http://localhost/" and redirect that url request to my message page "http://localhost/default.html."

Here's the solution:

if(urlString.Find("/") != -1) { urlString.Replace(urlString, "/default.html");

Was it helpful?

Solution 3

the answer is: if(urlString.Find("/") != -1) { urlString.Replace(urlString, "/default.html");

OTHER TIPS

The boost string algorithm library has some effective replace features.

Maybe you may use a RegExp to do the job ! : RegexLib.com

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top