SES routing question

I have a site that I recently converted to 3.1. I wasn’t using SES prior to the upgrade. My site can be accessed using multiple URLs.

Example:
URL 1: www.nations-baseball.com
URL 2: www.nations-fastpitch.com

I’ve turned on SES and now it seems that the when I access www.nations-fastpitch.com it is changing the baseURL to www.nations-baseball.com. It’s only happening when the url doesn’t specify a handler/event so www.nations-fastpitch.com/index.cfm/event/handler works fine.

My routes.cfm looks like the below. The way I understand this it should leave the base path alone.

// Base URL
if( len(getSetting(‘AppMapping’) ) lte 1){
setBaseURL(“http://#cgi.HTTP_HOST#/index.cfm”);
}
else{
setBaseURL(“http://#cgi.HTTP_HOST#/#getSetting(‘AppMapping’)#/index.cfm”);
}

Any ideas?

Thanks.

You need to set the base URL on the request context as you are serving requests from the same application on multiple domains. We have a multi-domain SES interceptor on forgebox.

Luis F. Majano
President
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thanks. It’s nothing but an interceptor with a preprocess function. So if I use this do I remove the setBaseURL code from the routes.cfm?

That interceptor fixed it. Thanks.