This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 7a4b774 Automated site publishing by Jenkins build 706
7a4b774 is described below
commit 7a4b77454216d94eea7daeb73b586489577680c2
Author: jenkins <[email protected]>
AuthorDate: Mon Apr 8 18:05:51 2019 +0000
Automated site publishing by Jenkins build 706
---
content/.htaccess | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/content/.htaccess b/content/.htaccess
index 173f36e..e052951 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -9,3 +9,13 @@ Redirect 302 /nb/issues_redirect.html
https://issues.apache.org/jira/projects/NE
Redirect 302 /nb/report-issue
https://issues.apache.org/jira/projects/NETBEANS/issues
#cgi mirror script
Redirect 301 /download/maven/index.html /download/maven/index.cgi
+# Enable rewrite engine to redirect 404 pages to old netbeans.org
(137.254.56.26)
+RewriteEngine On
+# If the requested stuff is not a file ...
+RewriteCond "%{REQUEST_FILENAME}" "!-f"
+# ... nor a directory ...
+RewriteCond "%{REQUEST_FILENAME}" "!-d"
+# ... then redirect (302) to Oracle's server
+RewriteRule (.*) "http://137.254.56.26/$1" [L,R=302]
+# As a fallaback also redirect all 404 files
+ErrorDocument 404 http://137.254.56.26/%{REQUEST_URI}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists