2
Answers

Redirecting to a dir on server

fallingbehind

fallingbehind

20y
1.8k
1
Hey guys, new to the forums. I have a quick question, let me explain. I have 2 domains pointing to one server, and I'd like them to each bounce to a different folder on the server. I know you can do this with Response.Redirect, but what would the code be? I've tried this: private void Page_Load(object sender, System.EventArgs e) { string ClientURL = Convert.ToString(Request.ServerVariables["SERVER_NAME"]).ToUpper(); if (ClientURL.IndexOf("evasionaz") > -1) { Response.Redirect("/evasion/"); } else if (ClientURL.IndexOf("entropyx") > -1) { Response.Redirect("/entropy"); } } but that didn't work, anyone know how to work this out?

Answers (2)