summaryrefslogtreecommitdiff
path: root/glew/auto/EGL-Registry/sdk/docs/man/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to 'glew/auto/EGL-Registry/sdk/docs/man/.htaccess')
-rw-r--r--glew/auto/EGL-Registry/sdk/docs/man/.htaccess13
1 files changed, 13 insertions, 0 deletions
diff --git a/glew/auto/EGL-Registry/sdk/docs/man/.htaccess b/glew/auto/EGL-Registry/sdk/docs/man/.htaccess
new file mode 100644
index 0000000..578915b
--- /dev/null
+++ b/glew/auto/EGL-Registry/sdk/docs/man/.htaccess
@@ -0,0 +1,13 @@
+RewriteEngine on
+
+# Avoid redirect loops
+RewriteCond %{ENV:REDIRECT_STATUS} 200
+RewriteRule ^ - [L]
+
+# Unlike the OpenGL ES and OpenGL reference pages, we're not keeping
+# old versions of the EGL man pages around. Just redirect links to
+# egl/sdk/docs/man/xhtml/*.html to the new HTML 5 pages in html/*.xhtml.
+
+RewriteRule ^xhtml/$ https://www.khronos.org/registry/egl/sdk/docs/man/ [L,R=301]
+RewriteRule ^xhtml/index.html https://www.khronos.org/registry/egl/sdk/docs/man/ [L,R=301]
+RewriteRule ^xhtml/(.*)\.html https://www.khronos.org/registry/egl/sdk/docs/man/html/$1.xhtml [L,R=301]