Logo address

URI rewrite (2)

2002/02/16

NAME
	rewrite
LOCATION
	/etc/rewrite in httpd name space
DESCRIPTION
	This file is used to let the client know the correct URI.
	URI redirection is performed with two level.
	The first redirection is executed using
		/sys/lib/httpd.rewrite
	(Note that this file is administrated by system administrator.)
	and the second is,
		/etc/rewrite
	in service space.(Note that this file is administrated by document
	administrator.)

	URI redirection using /etc/rewrite is limited in comparison with that
	of /sys/lib/httpd.rewrite:
	(1) asterisk `*' modification in second field is not applicable
	(2) if tilde `~' modification such as /~alice is used in first field,
	    then it is merely a name of directory.

	Other redirection rule is same between two files.
	However You should aware that host name in first field is meaningless,
	because host name is already determined by /sys/lib/httpd.rewrite.

REWRITE RULE
	If requested URI matches more than one URI field (first field of /etc/rewrite
	 file ), then the longest pattern is adopted.
	The matched portion is replaced by the string of second field.
	See also path matching rule