You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by wg...@apache.org on 2005/07/14 01:23:20 UTC

svn commit: r216284 - /jakarta/velocity/core/trunk/xdocs/.htaccess

Author: wglass
Date: Wed Jul 13 16:23:18 2005
New Revision: 216284

URL: http://svn.apache.org/viewcvs?rev=216284&view=rev
Log:
revised rewrites to properly send "doc" to "doc14".  Also converted rewrites to old links to redirects to put in correct directory.

Modified:
    jakarta/velocity/core/trunk/xdocs/.htaccess

Modified: jakarta/velocity/core/trunk/xdocs/.htaccess
URL: http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/xdocs/.htaccess?rev=216284&r1=216283&r2=216284&view=diff
==============================================================================
--- jakarta/velocity/core/trunk/xdocs/.htaccess (original)
+++ jakarta/velocity/core/trunk/xdocs/.htaccess Wed Jul 13 16:23:18 2005
@@ -2,29 +2,30 @@
 RewriteBase /
 
 ## rewrite links from earlier directory structure
-## use forward not redirect so anchors still work
 
-RewriteRule ^anakia\.html velocity/docs14/anakia.html 
-RewriteRule ^changes\.html velocity/docs14/changes.html 
-RewriteRule ^developer-guide\.html velocity/docs14/developer-guide.html 
-RewriteRule ^license\.html velocity/docs14/license.html 
-RewriteRule ^texen\.html velocity/docs14/texen.html 
-RewriteRule ^user-guide\.html velocity/docs14/user-guide.html 
-RewriteRule ^veltag\.html docs14/veltag.html 
-RewriteRule ^vtl-reference-guide\.html velocity/docs14/vtl-reference-guide.html 
-RewriteRule ^api velocity/docs14/api
+## these need to be redirects so images and relative
+## hyperlinks will work
+
+## side-effect - anchors will fail
+
+RewriteRule ^anakia\.html velocity/docs/anakia.html                       [R]
+RewriteRule ^changes\.html velocity/docs/changes.html                     [R] 
+RewriteRule ^developer-guide\.html velocity/docs/developer-guide.html     [R]
+RewriteRule ^license\.html velocity/docs/license.html                     [R]
+RewriteRule ^texen\.html velocity/docs/texen.html                         [R]
+RewriteRule ^user-guide\.html velocity/docs/user-guide.html               [R]
+RewriteRule ^veltag\.html docs/veltag.html                                [R]
+RewriteRule ^vtl-reference-guide\.html velocity/docs/vtl-reference-guide.html [R]
+RewriteRule ^api velocity/docs/api                                        [R]
 
 
 ## rewrite official links to point to correct version
-RewriteRule ^docs$ velocity/docs14/user-guide.html 
-RewriteRule ^docs/$ velocity/docs14/user-guide.html
 
 RewriteRule ^api$ velocity/docs14/api
-RewriteRule ^api/(.*/)$ velocity/docs14/api/\1
+RewriteRule ^api/(.*)$ velocity/docs14/api/$1
 
 RewriteRule ^docs$ velocity/docs14/
-
-RewriteRule ^docs/(.*/)$ velocity/docs14/\1
+RewriteRule ^docs/(.*)$ velocity/docs14/$1
 
 RewriteRule ^docs14$ velocity/docs14/user-guide.html 
 RewriteRule ^docs14/$ velocity/docs14/user-guide.html



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org