I have the following lines of code in routes.py

routers = dict(

    # base router
    BASE = dict(
        domains = {
            'domain.com' : 'init',
            'www.domain.com' : 'init',
            'ldc.domain.com' : 'admin',
            'my.domain.com' : 'controlpanel',
        }
    ),
)

I want to add root_static = ['favicon.ico', 'robots.txt'], to routers but I 
am not sure
about the syntax and where to put the robots.txt file.

BASE = dict(
        domains = { },
        root_static = ['favicon.ico', 'robots.txt'],
    ),
)

would this be correct?

Should robots.txt go into the /applications/init/static/


Kind regards,

Annet

-- 
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/2f75ccc0-d59a-40b9-9a43-9550b9b6503bn%40googlegroups.com.

Reply via email to