C
Corey O'Mara
Hello all,
I'd like to have personalized URL's in my application. For example,
http://mydomain.com/sites/page.aspx should be accessible via
http://mydomain.com/sites/username/page.aspx. I'd like to parse the URL and
grab the username so I can deliver the appropriate content on the page. This
seems to be accomplished by the HttpContext.RewritePath method. I've read
that ASP.NET uses it to strip out the SessionID when cookieless sessions are
turned on.
Unfortunately, the RewritePath method seems to only affect the filename
portion of the URL. For example, I can strip out the username and append it
to the end of the URL in the form
http://mydomain.com/sites/username/page.aspx?Parameter1=username, but the
username still remains in the URL, resulting in a 404 error.
Any insight is much appreciated.
I'd like to have personalized URL's in my application. For example,
http://mydomain.com/sites/page.aspx should be accessible via
http://mydomain.com/sites/username/page.aspx. I'd like to parse the URL and
grab the username so I can deliver the appropriate content on the page. This
seems to be accomplished by the HttpContext.RewritePath method. I've read
that ASP.NET uses it to strip out the SessionID when cookieless sessions are
turned on.
Unfortunately, the RewritePath method seems to only affect the filename
portion of the URL. For example, I can strip out the username and append it
to the end of the URL in the form
http://mydomain.com/sites/username/page.aspx?Parameter1=username, but the
username still remains in the URL, resulting in a 404 error.
Any insight is much appreciated.