PDavid commented on code in PR #12:
URL: https://github.com/apache/hbase-site/pull/12#discussion_r3129799363


##########
.htaccess:
##########
@@ -1,7 +1,15 @@
+# Redirect old HTML pages to new extensionless URLs
+Redirect permanent /downloads.html /downloads
+Redirect permanent /acid-semantics.html /acid-semantics
+Redirect permanent /sponsors.html /sponsors
+Redirect permanent /coc.html /code-of-conduct
+Redirect permanent /export_control.html /export-control
+Redirect permanent /poweredbyhbase.html /powered-by-hbase
+Redirect permanent /old_news.html /news

Review Comment:
   Added these to try to redirect requests for old pages to new ones.
   
   I pushed these changes to https://hbase-beta.staged.apache.org/ you can try 
it out. Redirect seems to work.
   
   ```sh
   $ for page in downloads.html acid-semantics.html sponsors.html 
export_control.html poweredbyhbase.html old_news.html; do
     echo "=== $page ==="
     curl -sI "https://hbase-beta.staged.apache.org/$page"; | grep -E 
"^HTTP|^Location"
   done
   === downloads.html ===
   HTTP/1.1 301 Moved Permanently
   Location: https://hbase-beta.staged.apache.org/downloads
   === acid-semantics.html ===
   HTTP/1.1 301 Moved Permanently
   Location: https://hbase-beta.staged.apache.org/acid-semantics
   === sponsors.html ===
   HTTP/1.1 301 Moved Permanently
   Location: https://hbase-beta.staged.apache.org/sponsors
   === export_control.html ===
   HTTP/1.1 301 Moved Permanently
   Location: https://hbase-beta.staged.apache.org/export-control
   === poweredbyhbase.html ===
   HTTP/1.1 301 Moved Permanently
   Location: https://hbase-beta.staged.apache.org/powered-by-hbase
   === old_news.html ===
   HTTP/1.1 301 Moved Permanently
   Location: https://hbase-beta.staged.apache.org/news
   
   ```



-- 
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