how to know if the referrer is an alias?

elic05

Member
Joined
Nov 2, 2008
Messages
19
Programming Experience
Beginner
I have a domain name that is an alias
the primary domain name and the alias are pointing to the same web page
If someone used the alias, i want him to be directed to another page.

i tried
VB.NET:
If Request.UrlReferrer.AbsoluteUri = myAlias Then
            Response.Redirect("~/album.aspx")
        End If
but the referrer is always nothing
 
I don't see how UrlReferrer is relevant. If anything you should look at Request.Url.
 
Back
Top