SSL/Non-SSL Redirects
Posted: Tue Nov 02, 2010 4:02 pm
I love how AC7 kicks users back and forth between SSL and non-SSL pages. It improves load speed an reduces server overhead.
One thing I noticed though is that when it passes back and forth it redirects you to a different URL than was requested. Example: If you create a link to the home page and use http://www.mydomain.com/ for the URL, when the link is redirected it goes to http://www.mydomain.com/default.aspx. A more glaring example is if you have static links to product or category pages (we built a static header/footer navigation), then you end up with http://www.mydomain.com/category.aspx?CategoryId=99.
It would be most excellent if the redirect used the Request.Url.RawUrl so it would redirect to the exact location that was requested and not the parsed URL.
One thing I noticed though is that when it passes back and forth it redirects you to a different URL than was requested. Example: If you create a link to the home page and use http://www.mydomain.com/ for the URL, when the link is redirected it goes to http://www.mydomain.com/default.aspx. A more glaring example is if you have static links to product or category pages (we built a static header/footer navigation), then you end up with http://www.mydomain.com/category.aspx?CategoryId=99.
It would be most excellent if the redirect used the Request.Url.RawUrl so it would redirect to the exact location that was requested and not the parsed URL.