I am having an issue with setNextEvent and it redirecting to the wrong
subdomain.. I have Apache configured with wildcard subdomains,
everything works fine unless you are redirected through
Here is the issue, say you went to www.site.com and then you were
moved to username.site.com, everything works fine you can go navigate
around the site but when you are redirected via setnextevent your
would be moved back to www.site.com.
I also notice that all setNextEvent redirects use Status 302 Moved
Temporarily. Not sure if this is part of the issue.
Heath, are you saying you have an app that responds to two different domains?
If so, you need to switch the domain context on each request as the app could be responding requests for multiple domains. We have a multi domain SES interceptor in forgebox that can help you on this. The problem lies in that the setNextEvent uses the value in the request context which in turn is the value in your routes.cfm. As you requests can switch domain you need to switch it in the request context as well.
event.setSESBaseURL( domain1 or domain 2)
Luis F. Majano
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
IECFUG Manager: http://www.iecfug.com
Social: twitter.com/lmajano facebook.com/lmajano
Thank you for the response. There is only one actual domain with many dynamic subdomains. Each user will have an account with their own subdomain which styles the site to their brand.
My problem is setnextevent always sends the user back to whatever address they entered the site at. So if they typed in somesite.com and then went over to someuser.somesite.com they would be redirected back to somesite.com when they came across a setnextevent().