I have an asp.net application that I use to track traffic.
I get an incoming visitor from several source sites and redirect the visitor to the target site using Response.Redirect (url);
The problem is that the referent shown on the target website (after the redirect) currently refers to the URL of the original website, and not to my website.
How to clean / change referent before using Response.Redirect?
This is my Default.aspx code:
public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { Response.Redirect(url); } catch (System.Threading.ThreadAbortException) { } } }
Thanks.
source share