You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2020/11/30 20:01:49 UTC

[directory-site] branch master updated: Added .htaccess files for initial gen-docs

This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 6328c1a  Added .htaccess files for initial gen-docs
     new 6c29898  Merge pull request #1 from rlenferink/add-redirects
6328c1a is described below

commit 6328c1a9c3010a08b6e8e355963a30f248cc9729
Author: Roy Lenferink <le...@gmail.com>
AuthorDate: Fri Oct 23 19:29:34 2020 +0200

    Added .htaccess files for initial gen-docs
---
 static/apacheds/gen-docs/.htaccess | 10 ++++++++++
 static/api/gen-docs/.htaccess      | 13 +++++++++++++
 static/fortress/gen-docs/.htaccess | 10 ++++++++++
 static/mavibot/gen-docs/.htaccess  | 10 ++++++++++
 4 files changed, 43 insertions(+)

diff --git a/static/apacheds/gen-docs/.htaccess b/static/apacheds/gen-docs/.htaccess
new file mode 100644
index 0000000..9400bc6
--- /dev/null
+++ b/static/apacheds/gen-docs/.htaccess
@@ -0,0 +1,10 @@
+Options +FollowSymLinks
+RewriteEngine On
+
+# Redirect to the latest release
+RewriteRule ^latest$ https://nightlies.apache.org/directory/apacheds/2.0.0.AM26/ [QSA,L]
+RewriteRule ^latest/(.*)$ https://nightlies.apache.org/directory/apacheds/2.0.0.AM26/$1 [QSA,L]
+
+# Redirect everything else
+RewriteRule ^(.*)$ https://nightlies.apache.org/directory/apacheds/$1 [QSA,L]
+
diff --git a/static/api/gen-docs/.htaccess b/static/api/gen-docs/.htaccess
new file mode 100644
index 0000000..ffaf189
--- /dev/null
+++ b/static/api/gen-docs/.htaccess
@@ -0,0 +1,13 @@
+Options +FollowSymLinks
+RewriteEngine On
+
+# Redirect to the latest releases
+RewriteRule ^latest$ https://nightlies.apache.org/directory/api/1.0.2/ [QSA,L]
+RewriteRule ^latest/(.*)$ https://nightlies.apache.org/directory/api/1.0.2/$1 [QSA,L]
+
+RewriteRule ^latest2$ https://nightlies.apache.org/directory/api/2.0.1/ [QSA,L]
+RewriteRule ^latest2/(.*)$ https://nightlies.apache.org/directory/api/2.0.1/$1 [QSA,L]
+
+# Redirect everything else
+RewriteRule ^(.*)$ https://nightlies.apache.org/directory/api/$1 [QSA,L]
+
diff --git a/static/fortress/gen-docs/.htaccess b/static/fortress/gen-docs/.htaccess
new file mode 100644
index 0000000..305aaf1
--- /dev/null
+++ b/static/fortress/gen-docs/.htaccess
@@ -0,0 +1,10 @@
+Options +FollowSymLinks
+RewriteEngine On
+
+# Redirect to the latest release
+RewriteRule ^latest$ https://nightlies.apache.org/directory/fortress/2.0.5/ [QSA,L]
+RewriteRule ^latest/(.*)$ https://nightlies.apache.org/directory/fortress/2.0.5/$1 [QSA,L]
+
+# Redirect everything else
+RewriteRule ^(.*)$ https://nightlies.apache.org/directory/fortress/$1 [QSA,L]
+
diff --git a/static/mavibot/gen-docs/.htaccess b/static/mavibot/gen-docs/.htaccess
new file mode 100644
index 0000000..53e5f06
--- /dev/null
+++ b/static/mavibot/gen-docs/.htaccess
@@ -0,0 +1,10 @@
+Options +FollowSymLinks
+RewriteEngine On
+
+# Redirect to the latest release
+RewriteRule ^latest$ https://nightlies.apache.org/directory/mavibot/1.0.0-M8/ [QSA,L]
+RewriteRule ^latest/(.*)$ https://nightlies.apache.org/directory/mavibot/1.0.0-M8/$1 [QSA,L]
+
+# Redirect everything else
+RewriteRule ^(.*)$ https://nightlies.apache.org/directory/mavibot/$1 [QSA,L]
+