Mapping URL Patterns to Files with AliasMatch


AliasMatch ^/(docs|help) /usr/local/apache/htdocs/ manual


The AliasMatch directive provides a similar behavior to Alias, but enables you to specify a regular expression for the URL. The matches can be substituted in the destination path. For example, this directive will match any URL under /help or /docs to filesystem paths under the manual directory. Regular expressions are strings that describe or match a set of strings, according to certain syntax rules. You can learn more about regular expressions at http://en.wikipedia.org/wiki/Regular_expression.




Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net