You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "guan404ming (via GitHub)" <gi...@apache.org> on 2026/01/15 17:50:44 UTC
[PR] Add custom 404 page and redirects for legacy documentation [mahout]
guan404ming opened a new pull request, #835:
URL: https://github.com/apache/mahout/pull/835
### Purpose of PR
- Add custom 404 page that explains Mahout's transition from MapReduce/Samsara to Qumat
- Include links to current Qumat documentation and working Wayback Machine archives
- Add .htaccess with redirects for legacy documentation paths
### Related Issues or PRs
<!-- Add links to related issues or PRs. -->
<!-- - Closes #123 -->
- Related to #811
### Changes Made
<!-- Please mark one with an "x" -->
- [ ] Bug fix
- [x] New feature
- [ ] Refactoring
- [ ] Documentation
- [ ] Test
- [ ] CI/CD pipeline
- [ ] Other
### Breaking Changes
<!-- Does this PR introduce a breaking change? -->
- [ ] Yes
- [x] No
### Checklist
<!-- Please mark each item with an "x" when complete -->
<!-- If not all items are complete, please open this as a **Draft PR**.
Once all requirements are met, mark as ready for review. -->
- [ ] Added or updated unit tests for all changes
- [x] Added or updated documentation for all changes
- [x] Successfully built and ran all unit tests or manual tests locally
- [ ] PR title follows "MAHOUT-XXX: Brief Description" format (if related to an issue)
- [x] Code follows ASF guidelines
--
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: dev-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add custom 404 page and redirects for legacy documentation [mahout]
Posted by "rawkintrevo (via GitHub)" <gi...@apache.org>.
rawkintrevo merged PR #835:
URL: https://github.com/apache/mahout/pull/835
--
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: dev-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add custom 404 page and redirects for legacy documentation [mahout]
Posted by "ryankert01 (via GitHub)" <gi...@apache.org>.
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.
--
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: dev-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add custom 404 page and redirects for legacy documentation [mahout]
Posted by "ryankert01 (via GitHub)" <gi...@apache.org>.
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: dev-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add custom 404 page and redirects for legacy documentation [mahout]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on code in PR #835:
URL: https://github.com/apache/mahout/pull/835#discussion_r2696745943
##########
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:
Make sense. I've updated
--
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: dev-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org