此代码的问题是什么?| 我想默认网站重定向到SSL的"http://",以"https://"为宗旨的网页网站日志。我使用下面的代码,但都不尽如人意。 string url = Regex.Replace(oldUrl, "http://", "https://");任何一个点出错误呢?
string url = Regex.Replace(oldUrl, "http://", "https://");