Strange... 1) First of all, can you confirm this is a routes.py file in the web2py root directory and that there are not any routes.py (app-specific routers) files present in the app directories as well (that could be overriding the main routes.py)?
2) The config I posted is my live config (other then changing domain names and apps to make it easier to read). It routes to the relevant apps based on the domains as expected, even with the one app set as default. 3) Also in the routes.py code you posted, the default_function key is misspelt as default_*fucn*tion, which would mean it is ignored (although I think web2py looks for 'index' anyway if none specified, but am not 100% certain). 4) Not sure about the www part. I have a frontend redirect for my www. domains to the normal domain. But, what if you specify www.domain.com as well as domain.com going to 'app1'. Haven't tested this but would expect it to work. 5) Earlier I accessed both your sites at site.in/welcome and was served the welcome app. Now I retried and get the expected error message that it is invalid. Not sure if that helps. 6) Critical... you must restart the server for any change you make to routes.py to come into effect. Not sure if you saw this on the last post. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/030d7db3-c097-4e97-82c8-55c0ae80b57d%40googlegroups.com.