How and where to create sitemap.xml and robot.txt

643 views
Skip to first unread message

green

unread,
Mar 31, 2014, 8:24:42 AM3/31/14
to mezzani...@googlegroups.com
Sorry for asking silly questions but I am stuck and don't know where to look for this after searching around the net.  

I have may Mezzanine project up and running but I do not know how to create sitemap file.  I notice that pages has 'show in site map' tick but where is it?  

Do I need to write a code to get sitemapfile and if so how?   

No clue as to how/where sitemap.xml and robot.txt shld be created and located.  Any pointers are much appreciated.  Thank you.

Ken Bolton

unread,
Mar 31, 2014, 9:26:14 AM3/31/14
to mezzanine-users
Have you looked for the files at the root of your deployed project? For instance, http://mezzanine.jupo.org/sitemap.xml and http://mezzanine.jupo.org/robots.txt.


best of luck,
ken


--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eduardo Rivas

unread,
Mar 31, 2014, 11:30:12 AM3/31/14
to mezzani...@googlegroups.com
Well that's a new one for me! I know sitemaps are automatically generated from Displayable instances, but never knew robots.txt was being inserted in production. It's weird, my sites return a 404 when I look for robots.txt. May I suggest we provide an option to modify robots.txt from the Site settings? That'd be pretty handy.

Ken Bolton

unread,
Mar 31, 2014, 11:35:57 AM3/31/14
to mezzanine-users
Hi Eduardo,

https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/deploy/nginx.conf#L36-L40 contains the Nginx directives for robots.txt. If you do not use the stock Fabric script and Nginx configuration, you will not get robots.txt by default and will have to add it to your custom configuration.

best,
ken


On Mon, Mar 31, 2014 at 11:30 AM, Eduardo Rivas <jeriva...@gmail.com> wrote:
Well that's a new one for me! I know sitemaps are automatically generated from Displayable instances, but never knew robots.txt was being inserted in production. It's weird, my sites return a 404 when I look for robots.txt. May I suggest we provide an option to modify robots.txt from the Site settings? That'd be pretty handy.

--

Eduardo Rivas

unread,
Mar 31, 2014, 11:37:41 AM3/31/14
to mezzani...@googlegroups.com
Ah! There it is! I'm not using the default Nginx config. Thanks a lot.
Reply all
Reply to author
Forward
0 new messages