apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: svn commit: r490422 - in /apr/site/trunk: docs/ docs/docs/apr-iconv/ docs/docs/apr-iconv/0.9/ docs/docs/apr-iconv/1.1/ docs/docs/apr-iconv/trunk/ docs/docs/apr-util/ docs/docs/apr-util/0.9/ docs/docs/apr-util/1.2/ docs/docs/apr-util/trunk/ docs/d
Date Wed, 27 Dec 2006 22:04:44 GMT
On Thu, 2006-12-28 at 08:52 +1100, Bojan Smojver wrote:

> Something like this then:
> 
> RewriteEngine on
> RewriteRule ^/docs/apr/([A-Za-z_]+).html$ /docs/apr/0.9/$1.html [R,L]
> RewriteRule ^/docs/apr-util/([A-Za-z_]+).html$ /docs/apr-util/0.9/$1.html [R,L]
> RewriteRule ^/docs/apr-iconv/([A-Za-z_]+).html$ /docs/apr-iconv/0.9/$1.html [R,L]

Or better:

RewriteEngine on
RewriteRule ^/docs/apr/([A-Za-z_]+)\.(html|css|png|gif)$ /docs/apr/0.9/$1.$2 [R,L]
RewriteRule ^/docs/apr-util/([A-Za-z_]+)\.(html|css|png|gif)$ /docs/apr-util/0.9/$1.$2 [R,L]
RewriteRule ^/docs/apr-iconv/([A-Za-z_]+)\.(html|css|png|gif)$ /docs/apr-iconv/0.9/$1.$2 [R,L]

-- 
Bojan


Mime
View raw message