Is it possible to map a root domain URL to a Grails' controller?
- by firnnauriel
Let's have an example: A grails project, myproj, is deployed in Tomcat 6. It can be accessed anywhere thru this link: http://www.mycompany.com/myproj.
Let's say we purchase another domain, http://newcompany.com, and we would like to point it to http://www.mycompany.com/myproj/url.
If I go to http://newcompany.com/12345, it should be the same as doing http://www.mycompany.com/myproj/url/12345.
Can anyone tell me if this is possible? How to implement it (change Tomcat 6 config, add code in UrlMappings.groovy)?
Thanks in advance.