httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <c...@stdlib.net>
Subject /docs/ redirect and 2.2
Date Wed, 30 Nov 2005 11:27:17 GMT

It's bit 6 months since the redirects were put in place, and we're about
to release 2.2. Is it time that

	/docs/blah redirected to "/docs/2.2/blah"

?

The vast vast majority of urls are compatible, and for those that are
not, we can do;

	<Directory /wherever/docs/>
	  RewriteCond	%{REQUEST_FILENAME} !-f 	
	  RewriteCond	%{REQUEST_FILENAME} !-d 	
	  RewriteRule	^/docs(.+)$	$1

	  RewriteCond	/wherever/docs/2.2%{REQUEST_FILENAME} -f [OR]
	  RewriteCond	/wherever/docs/2.2%{REQUEST_FILENAME} -d 
	  RewriteRule	^(.+)$	/docs/2.2$1		[R,L]

	  RewriteCond	/wherever/docs/2.0%{REQUEST_FILENAME} -f [OR]
	  RewriteCond	/wherever/docs/2.0%{REQUEST_FILENAME} -d 
	  RewriteRule	^(.+)$	/docs/2.0$1		[R,L]

	  RewriteCond	/wherever/docs/1.3%{REQUEST_FILENAME} -f [OR]
	  RewriteCond	/wherever/docs/1.3%{REQUEST_FILENAME} -d 
	  RewriteRule	^(.+)$	/docs/1.3$1		[R,L]
        </Directory>

So there should be no broken links. We need to do this some time, and
co-inciding with the 2.2 release seems like a good opportunity.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message