This is an automated email from the ASF dual-hosted git repository.

bmarwell pushed a commit to branch jbake
in repository https://gitbox.apache.org/repos/asf/shiro-site.git


The following commit(s) were added to refs/heads/jbake by this push:
     new 548e941  htaccess: redirect blog links / fix javadoc links
548e941 is described below

commit 548e9412c6693dc0124fa7eace240451124845d7
Author: Benjamin Marwell <[email protected]>
AuthorDate: Fri Jan 14 08:01:54 2022 +0100

    htaccess: redirect blog links / fix javadoc links
---
 jbake/assets/.htaccess                             | 30 +++++++++++++++++++---
 .../blog/2012/07/29/apache-shiro-121-released.adoc |  2 +-
 2 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/jbake/assets/.htaccess b/jbake/assets/.htaccess
index c83bd00..7283453 100644
--- a/jbake/assets/.htaccess
+++ b/jbake/assets/.htaccess
@@ -15,14 +15,36 @@ RedirectMatch ^/features-overview.html /features.html
 RedirectMatch ^/contribute.html /how-to-contribute.html
 
 # redirect blog posts
-RedirectMatch ^/2013/05/30/apache-shiro-122-released.html 
/how-to-contribute.html
+# old:   2013/05/30/apache-shiro-122-released.html
+# new:   blog/2013/05/30/apache-shiro-122-released.html
+RedirectMatch ^/2013/05/30/apache-shiro-122-released.html 
/blog/2013/05/30/apache-shiro-122-released.html
+RedirectMatch ^/2012/07/29/apache-shiro-121-released.html 
/blog/2012/07/29/apache-shiro-121-released.html
+RedirectMatch ^/2012/03/13/whats-new-in-apache-shiro-12.html 
/blog/2012/03/13/whats-new-in-apache-shiro-12.html
+RedirectMatch ^/2012/01/24/apache-shiro-120-released.html 
/blog/2012/01/24/apache-shiro-120-released.html
+RedirectMatch ^/2011/06/30/apache-shiro-login-demo.html 
/blog/2011/06/30/apache-shiro-login-demo.html
+RedirectMatch ^/2011/05/24/the-new-rbac-resource-based-access-control.html 
/blog/2011/05/24/the-new-rbac-resource-based-access-control.html
+RedirectMatch ^/2011/03/14/infoq-article-on-apache-shiro.html 
/blog/2011/03/14/infoq-article-on-apache-shiro.html
+RedirectMatch 
^/2011/02/28/java-authorization-guide-with-apache-shiro-posted.html 
/blog/2011/02/28/java-authorization-guide-with-apache-shiro-posted.html
+RedirectMatch 
^/2011/02/10/apache-shiro-integration-for-grails-113-released.html 
/blog/2011/02/10/apache-shiro-integration-for-grails-113-released.html
+RedirectMatch ^/2011/01/13/apache-shiro-support-for-mule.html 
/blog/2011/01/13/apache-shiro-support-for-mule.html
+RedirectMatch 
^/2011/01/06/apache-shiro-video-and-slide-from-sf-jug-presentation.html 
/blog/2011/01/06/apache-shiro-video-and-slide-from-sf-jug-presentation.html
+RedirectMatch ^/2010/11/03/apache-shiro-110-released.html 
/blog/2010/11/03/apache-shiro-110-released.html
+RedirectMatch 
^/2010/09/24/apache-shiro-becomes-an-apache-top-level-project.html 
/blog/2010/09/24/apache-shiro-becomes-an-apache-top-level-project.html
+RedirectMatch ^/2010/09/20/san-francisco-jug-presentation.html 
/blog/2010/09/20/san-francisco-jug-presentation.html
+RedirectMatch 
^/2010/09/14/ibm-developerworks-introduction-to-apache-shiro.html 
/blog/2010/09/14/ibm-developerworks-introduction-to-apache-shiro.html
+RedirectMatch ^/2010/06/01/sdforum-java-sig-apache-shiro-presentation.html 
/blog/2010/06/01/sdforum-java-sig-apache-shiro-presentation.html
 
 # redirect old file names
 RedirectMatch ^/assets/images/articles/(.*) /files/articles/$1
 
-# javadoc fixes
-# old jar name
-RedirectMatch /static/(.*)/tools(.*) /static/$1/shiro-tools/$2
+# the tools-jar got renamed to shiro-tools.
+# this means, tools/apidocs and tools/shiro-tool-hasher/apidocs need to
+# be adjusted to shiro-tools/apidocs.
+#
+# redirect static/1.8.0/tools/apidocs/org/apache/shiro/tools/hasher/Hasher.html
+#    to    
static/1.8.0/shiro-tools/apidocs/org/apache/shiro/tools/hasher/Hasher.html
+# ... but leave the package name alone.
+RedirectMatch /static/(.*)/tools/apidocs/(.*) /static/$1/shiro-tools/$2
 
 # those do not exist anymore.
 RedirectMatch /static/1.1.0(.*) /static/current$1
diff --git a/jbake/content/blog/2012/07/29/apache-shiro-121-released.adoc 
b/jbake/content/blog/2012/07/29/apache-shiro-121-released.adoc
index 5f89f5f..ef27548 100644
--- a/jbake/content/blog/2012/07/29/apache-shiro-121-released.adoc
+++ b/jbake/content/blog/2012/07/29/apache-shiro-121-released.adoc
@@ -1,4 +1,4 @@
-= Apache Shiro 1.2.2 Released
+= Apache Shiro 1.2.1 Released
 Les Hazlewood
 :jbake-date: 2012-07-29
 :jbake-type: post

Reply via email to