This is an automated email from the ASF dual-hosted git repository. vieiro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git
The following commit(s) were added to refs/heads/master by this push: new 46c31aa htaccess redirect to legacy netbeans.org (#346) 46c31aa is described below commit 46c31aa72b347bc2f661544784e225fecf7ed07c Author: Antonio Vieiro <vie...@users.noreply.github.com> AuthorDate: Mon Apr 8 20:03:34 2019 +0200 htaccess redirect to legacy netbeans.org (#346) Let's see if this works. No way to test locally :-( --- netbeans.apache.org/src/content/.htaccess | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/netbeans.apache.org/src/content/.htaccess b/netbeans.apache.org/src/content/.htaccess index 173f36e..e052951 100644 --- a/netbeans.apache.org/src/content/.htaccess +++ b/netbeans.apache.org/src/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: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists