Baoyuantop commented on code in PR #1949:
URL: https://github.com/apache/apisix-website/pull/1949#discussion_r2278310187


##########
.htaccess:
##########
@@ -77,6 +77,8 @@ Redirect 301 
"/zh/blog/2021/11/30/use-apisix-ingress-in-kubesphere/httpbin.org/"
 Redirect 301 "/zh/blog/2021/08/25/Auth-with-Casbin-in-Apache-APISIX/" 
"/zh/blog/2021/08/18/auth-with-casbin-in-apache-apisix/"
 Redirect 301 "/zh/blog/2022/03/02/apisix-integration-graphql-plugin/" 
"/zh/blog/2022/03/02/apisix-integration-graphql/"
 
+RedirectMatch 301 "^/docs/ingress-controller/next/(.*)$" 
"/docs/ingress-controller/1.8.0/$1"

Review Comment:
   The documentation in our previous "next" directory is equivalent to the 
current documentation in the "1.8.0" directory, with their directories and 
contents completely matching. If we switch to version 2.x, the document paths 
for the old and new versions will be significantly different, requiring 
additional logic to handle these complex relationships, or simply redirecting 
to the 2.x homepage. Given that each old version document has a tooltip and 
link to the new version at the top, I think this is acceptable.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to