Skip to content

Instantly share code, notes, and snippets.

@ozknozsrt
Created July 6, 2018 11:07
Show Gist options
  • Save ozknozsrt/fca0acdbb5c0677ffb37ad8bf8e41e60 to your computer and use it in GitHub Desktop.
Save ozknozsrt/fca0acdbb5c0677ffb37ad8bf8e41e60 to your computer and use it in GitHub Desktop.
c# redirect replace
string path = Request.Url.ToString();
string url = path.Replace("http://localhost:50638/", "http://localhost:50638/en/");
Response.Redirect("url");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment