django - Robots.txt is not serving -
i using python django framework web application. have made urls.py entry serve robots.txt file, reason seems it's not able serve up.
url(r'^robots.txt$', 'support.views.robot_file',name="robot_file"),
this method works sitemap.xml has similar entry works
url(r'^sitemap.xml', 'support.views.sitemap_file',name="sitemap_file"),
which leads me believe serving robots.txt file problem when change serve robot.txt works.
can throw pointers in why happening?
you seem using apache - there's in apache config breaking robots.txt - maybe "alias /robots.txt /somewhere/that/doesn't/exist.txt" perhaps.
Comments
Post a Comment