# To make the URLs of the various CSS test suites more regular, some
# of the old ones were moved in January 2002. The new scheme is
#
#   http://www.w3.org/Style/CSS/Test/PROFILE/VERSION/YYYYMMDD
#   http://www.w3.org/Style/CSS/Test/PROFILE/VERSION/current
#   http://www.w3.org/Style/CSS/Test/LEVEL/MODULE/YYYYMMDD
#   http://www.w3.org/Style/CSS/Test/LEVEL/MODULE/current
#
# where PROFILE is something like "Mobile" or "TV", VERSION is
# something like "1.0", LEVEL is "CSS1", "CSS2" or "CSS3" and MODULE
# is a module name without the "css3-" part and with initial cap, e.g.
# "Selectors".
#
# Author: Bert Bos
# Created: 30 Jan 2002
# Modified: $Date: 2002/02/06 18:46:56 $

RewriteEngine on

# Removed the /afs/w3.org/pub/WWW that the global config has already
# inserted before the path, because we are not really rewriting, but
# redirecting via HTTP.
#
RewriteBase	/Style/CSS/Test/CSS3/Selectors

# This would be a way to redirect "current" to the latest version, but
# it shows the version in the browser's "location" field, while people
# probably want to bookmark the "current" link. Thus, this rule is
# removed, and a symlink is added to the file system instead.
#
#RewriteRule	^current(/.*)?$		20020115$1	[R=temp,L]

# Since this directory doesn't contain an Overview.html, we direct
# requests for the directory itself to the "current" directory.
#
RewriteRule	^$			current		[R=permanent,L]

# All the old test suites are renamed
#
RewriteRule	^test-(20011105(/.*)?)$		$1	[R=permanent,L]
RewriteRule	^test-(20011121(/.*)?)$		$1	[R=permanent,L]
RewriteRule	^test-(20020115(/.*)?)$		$1	[R=permanent,L]

# The "latest" URL should really have been called "current"
#
RewriteRule	^latest(/.*)?$		current$1	[R=permanent,L]
