Friday, July 29, 2016

Why is my site redirecting to RedirectSession.ashx

Problem: I was working on a website using the standard azure url. Then to do proper testing for production we changed the host header to www.mysite.com but when we did that we noticed it was doing a 302 redirect to the azureurl/sitecore/service/analytics/session/RedirectSession.ashx

Solution:  There is a configuration key in the Sitecore.Analytics.Tracker.config. This tells sitecore the host name used for analytics. By changing this setting so the value matches your hostname it will not need to redirect anymore.

<setting name="Analytics.HostName" value="www.mysite.com" />

Thanks Akshay Sura for your assistance. I appreciate it.

If you have any tips, tricks or resources to share with the guild please email them to me at chris.williams@readwatchcreate.com

No comments:

Post a Comment