ryankert01 commented on code in PR #835:
URL: https://github.com/apache/mahout/pull/835#discussion_r2696691772


##########
website/.htaccess:
##########
@@ -0,0 +1,37 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.
+
+# Enable custom 404 page
+ErrorDocument 404 /404.html
+
+# Redirect legacy documentation paths to the 404 page with context
+# These paths were removed in January 2026 when Mahout transitioned to Qumat
+
+# Legacy MapReduce algorithm documentation
+RedirectMatch 301 ^/users/(.*)$ /404.html
+RedirectMatch 301 ^/documentation/users/(.*)$ /404.html
+RedirectMatch 301 ^/documentation/tutorials/(.*)$ /404.html

Review Comment:
   The removed documents cannot use 301 as
   - 301 means "this content moved permanently to a new location"
   - 404 means "this content doesn't exist"
   
   We can use 410(Gone) instead. wdyt?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to