login redirects infinitly on subdomain
<p>I have a subdomain at:
kezblu.mysite.com.</p>

<p>It is actually at mysite.com/kezblu</p>

<p>I have code that will ask a user to login if they are not:</p>

<pre><code>protected void HandleLoginRedirect()
{
    if (IsRequestedPage("Login") &amp;&amp; Authorization.IsAuthenticated())
    {
        Response.Redirect("default.aspx");
    }
    else if (!Authorization.IsAuthenticated() &amp;&amp; !IsRequestedPage("Login"))
    {
        string fileName = this.Page.Request.Url.ToString();
        fileName = fileName.Remove(0, fileName.LastIndexOf("/") + 1);

        Response.Redirect("Login.aspx?redirect=" + fileName);
    }
}


    public bool IsRequestedPage(string pageName)
    {
        return Request.RawUrl.StartsWith("/" + pageName + ".aspx");
    }
</code></pre>

<p>The problem is of I go to kezblu.mysite.com/kezblu</p>

<p>I end up with:</p>

<pre><code>http://kezblu.mysite.com/kezblu/Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=Login.aspx?redirect=default.aspx
</code></pre>

<p>I also noticed when I sign out, even if I was at kezblu.mysite.com/somewhere.aspx</p>

<p>It redirects me to the above.</p>

<p>What is wrong with my code?</p>

<p>I do not get it.</p>

<p>Thanks</p>
