c++mfcisapi-redirect

managed c++ find and replace syntax


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");


Solution

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