*** /usr/src/redhat/BUILD/httpd-2.2.3/modules/generators/old.mod_autoindex.c 2006-07-11 20:38:44.000000000 -0700 --- /usr/src/redhat/BUILD/httpd-2.2.3/modules/generators/mod_autoindex.c 2006-11-21 07:33:08.000000000 -0800 *************** *** 150,155 **** --- 150,159 ---- * This routine puts the standard HTML header at the top of the index page. * We include the DOCTYPE because we may be using features therefrom (i.e., * HEIGHT and WIDTH attributes on the icons if we're FancyIndexing). + * + * Adding in 'robots' directive to play nice with ht://dig + * This eliminates the index/directory listings - playing a big part in the + * results of a search. This gives a higher quality result to the search. */ static void emit_preamble(request_rec *r, int xhtml, const char *title) { *************** *** 161,166 **** --- 165,171 ---- ap_rvputs(r, xhtml ? DOCTYPE_XHTML_1_0T : DOCTYPE_HTML_3_2, "\n \n Index of ", title, "\n", NULL); + ap_rvputs(r, " \n", NULL); if (d->style_sheet != NULL) { ap_rvputs(r, " style_sheet, "\" type=\"text/css\"", xhtml ? " />\n" : ">\n", NULL);