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

# AddType

## 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