<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Alias</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="mnoGoSearch 3.3.9 reference manual" HREF="index.html"><LINK REL="UP" TITLE="mnoGoSearch command reference" HREF="msearch-cmdref.html"><LINK REL="PREVIOUS" TITLE="Affix" HREF="msearch-cmdref-affix.html"><LINK REL="NEXT" TITLE="AliasProg" HREF="msearch-cmdref-aliasprog.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="mnogo.css"><META NAME="Description" CONTENT="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."><META NAME="Keywords" CONTENT="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"></HEAD ><BODY CLASS="refentry" BGCOLOR="#EEEEEE" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000" ><!--#include virtual="body-before.html"--><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><SPAN CLASS="application" >mnoGoSearch</SPAN > 3.3.9 reference manual: Full-featured search engine software</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="msearch-cmdref-affix.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="msearch-cmdref-aliasprog.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="cmdref-alias" ></A >Alias</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN7274" ></A ><H2 >Name</H2 ><B CLASS="command" >Alias</B > -- associates master and mirror sites<P ><B ></B ><TT CLASS="filename" >indexer.conf</TT ></P ><P ><B ></B ><TT CLASS="filename" >search.htm</TT ></P ></DIV ><DIV CLASS="refsynopsisdiv" ><A NAME="AEN7282" ></A ><H2 >Synopsis</H2 ><P ><B CLASS="command" >Alias</B > [Prefix | Regex] [Case | NoCase] {master} {mirror}</P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7293" ></A ><H2 >Description</H2 ><P > The first two optional parameters specify comparison and susbstitution types. The default type is <TT CLASS="literal" >Prefix</TT > and <TT CLASS="literal" >Case</TT > (case insensitive prefix match). </P ><DIV CLASS="refsect2" ><A NAME="AEN7298" ></A ><H3 > <B CLASS="command" >Alias</B > in <TT CLASS="filename" >indexer.conf</TT > </H3 ><P ><B CLASS="command" >Alias</B > can be used to organize search through a <SPAN CLASS="emphasis" ><I CLASS="emphasis" >master</I ></SPAN > site by indexing its <SPAN CLASS="emphasis" ><I CLASS="emphasis" >mirror</I ></SPAN >. </P ><P > It is also useful to index your own site directly from the local file system, to avoid invoking <ACRONYM CLASS="acronym" >HTTP</ACRONYM > server into indexing process and thus offload the server. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > Direct indexing from the local file system works mostly in case of a static site. If your site has many dynamic documents, such as <ACRONYM CLASS="acronym" >CGI</ACRONYM > scripts or <SPAN CLASS="application" >PHP</SPAN > programs, indexing from the file system may not work as expected. </P ></BLOCKQUOTE ></DIV ><P > If an <B CLASS="command" >Alias</B > command is specified for some site only in <TT CLASS="filename" >indexer.conf</TT >, <ACRONYM CLASS="acronym" >URL</ACRONYM > substitution is done by <SPAN CLASS="application" >indexer</SPAN > just <SPAN CLASS="emphasis" ><I CLASS="emphasis" >before</I ></SPAN > downloading a document, while <SPAN CLASS="application" >search.cgi</SPAN > will display document addresses in the <SPAN CLASS="emphasis" ><I CLASS="emphasis" >master</I ></SPAN > site <ACRONYM CLASS="acronym" >URL</ACRONYM > notation in search results. </P ></DIV ><DIV CLASS="refsect2" ><A NAME="AEN7321" ></A ><H3 ><B CLASS="command" >Alias</B > in <TT CLASS="filename" >search.htm</TT ></H3 ><P > If an <B CLASS="command" >Alias</B > command is specified only in <TT CLASS="filename" >search.htm</TT >, <ACRONYM CLASS="acronym" >URL</ACRONYM > substitution is done by <SPAN CLASS="application" >search.cgi</SPAN > when displaying search results, so the user will see addresses in the <SPAN CLASS="emphasis" ><I CLASS="emphasis" >mirror</I ></SPAN > site <ACRONYM CLASS="acronym" >URL</ACRONYM > notation, while <SPAN CLASS="application" >indexer</SPAN > will download the documents from the <SPAN CLASS="emphasis" ><I CLASS="emphasis" >master</I ></SPAN > site at indexing time. </P ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7334" ></A ><H2 >Scope</H2 ><P > <B CLASS="command" >Alias</B > takes global effect for the entire configuration file and can be used multiple times. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7338" ></A ><H2 >Examples</H2 ><DIV CLASS="informalexample" ><P ></P ><A NAME="AEN7340" ></A ><PRE CLASS="programlisting" > Alias http://www.mysql.com/ http://mysql.udm.net/ Alias http://www.site.com/ file:///usr/local/apache/htdocs/ Alias regex (http://www\.)(.*)(\.yourname\.com/)(.*) file:///home/$2/htdocs/$4 </PRE ><P ></P ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7342" ></A ><H2 >See also</H2 ><P > <A HREF="msearch-cmdref-aliasprog.html" >AliasProg</A >, <A HREF="msearch-cmdref-realm.html" >Realm</A >, <A HREF="msearch-cmdref-reversealias.html" >ReverseAlias</A >, <A HREF="msearch-indexer-configuration.html#aliases" >the Section called <I >Aliases</I > in Chapter 3</A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="msearch-cmdref-affix.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="msearch-cmdref-aliasprog.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Affix</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="msearch-cmdref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >AliasProg</TD ></TR ></TABLE ></DIV ><!--#include virtual="body-after.html"--></BODY ></HTML >