mnoGoSearch 3.2.31 reference manual: Full-featured search engine software
Prev |  | Next

# AddType
mnoGoSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license.
Keywords: shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, mnoGoSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing

## Name

AddType -- associates file names or extensions with mime types

indexer.conf

## Synopsis

AddType [String | Regexp] [Case | NoCase] {mime type} {arg...}

## Description

This command associates file names or extensions (for services that don't automatically include them) with mime types. Currently only "file:" protocol uses this command.

Use optional first two parameters to choose comparison type. Default type is "String" "NoCase" (case sensitive string may use "?" and "*" as wildcards for one and several characters correspondingly).

You may also use quotes in mime type definition, for example to specify charset. e.g. Russian webmasters often use *.htm extension for windows-1251 documents and *.html for Unix KOI8-r documents.

## Examples

    AddType text/plain                      *.txt  *.pl *.js *.h *.c *.pm *.e
    AddType text/html                       *.html *.htm
    AddType text/rtf                        *.rtf
    AddType application/pdf                 *.pdf
    AddType "text/html; charset=koi8-r"       *.html
    AddType "text/html; charset=windows-1251" *.htm
    AddType Regex application/rar  \.r[0-9][0-9]$
    AddType application/unknown *.*

Prev | Home | Next
mnoGoSearch commands reference | Up | Affix