Hi Jose,

Thanks for your reply.

One more thing. I've got routes.py in web2py's root folder, as you can see 
I've got
three applications, do I place the robots.txt file in all three 
application's static
folder?


Kind regards,

Annet

Op vrijdag 16 oktober 2020 om 12:39:18 UTC+2 schreef Jose C:

>
>> BASE = dict(
>>         domains = { },
>>         root_static = ['favicon.ico', 'robots.txt'],
>>     ),
>> )
>>
>> would this be correct?
>>
>> Should robots.txt go into the /applications/init/static/
>>
>
> Yep, any files served at the root of your site (e.g.  
> https://mydomain.com/robots.txt)  go in the /static directory of your app 
> and then you specify them in the root_static list as you've done.  
> Reminder, you need to restart your app each time you change anything in 
> routes.py for the new changes to take effect.
>
> Jose
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4fd0f8fc-c591-4dee-a4ad-40a9e82ad4f7n%40googlegroups.com.

Reply via email to