This is an automated email from the ASF dual-hosted git repository.
skygo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/netbeans-antora.git
The following commit(s) were added to refs/heads/main by this push:
new f4365b5 redirect for favicon and main page using htaccess
f4365b5 is described below
commit f4365b569b06a2f07dea2255026b8511a10c3436
Author: Eric Barboni <[email protected]>
AuthorDate: Wed Feb 14 13:01:44 2024 +0100
redirect for favicon and main page using htaccess
---
supplemental-ui/.htaccess | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/supplemental-ui/.htaccess b/supplemental-ui/.htaccess
index dac4f11..832f348 100644
--- a/supplemental-ui/.htaccess
+++ b/supplemental-ui/.htaccess
@@ -57,10 +57,6 @@ Redirect 302 /nb/report-issue
https://netbeans.apache.org/front/main/participate
# Inbound links from the build - prefixed with /nbbuild/
Redirect 302 /nbbuild/netbeansrelease.json
https://raw.githubusercontent.com/apache/netbeans-jenkins-lib/HEAD/meta/netbeansrelease.json
-# favicon for apidoc
-Redirect 301 ^/favicon-32x32.png
https://netbeans.apache.org/_/images/fav/favicon-32x32.png
-Redirect 301 ^/favicon-16x16.png
https://netbeans.apache.org/_/images/fav/favicon-16x16.png
-
#cgi mirror script not needed
#Redirect 301 /download/maven/index.html /download/maven/index.cgi
@@ -86,6 +82,7 @@ RedirectMatch 301 ^/.?downloads/.*$ /download/index.html
Redirect 302 /plugins/index.html https://plugins.netbeans.apache.org/
# former path to antora path after letting download to
+Redirect 301 /index.html /front/main/index.html
Redirect 301 /about/ /front/main/about/
# should also redirect atom
Redirect 301 /blogs/ /front/main/blogs/
@@ -104,6 +101,14 @@ Redirect 301 /download/ /front/main/download/
# A simple error page to antora folder
ErrorDocument 404 /front/main/404.html
+
+# favicon for apidoc
+# Redirect 301 ^/favicon-32x32.png
https://netbeans.apache.org/_/images/fav/favicon-32x32.png
+# Redirect 301 ^/favicon-16x16.png
https://netbeans.apache.org/_/images/fav/favicon-16x16.png
+
+RewriteRule ^/favicon-16x16.png$ /_/images/fav/favicon-16x16.png [R,L]
+RewriteRule ^/favicon-32x32.png$ /_/images/fav/favicon-32x32.png [R,L]
+
# 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 ...
---------------------------------------------------------------------
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