forked from KhronosGroup/Vulkan-Web-Registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
15 lines (13 loc) · 877 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
RewriteEngine on
# Avoid redirect loops
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule ^ - [L]
RewriteBase /registry/vulkan/
# Vulkan spec is now published as HTML5, not XHTML
RewriteRule ^specs/1.0-extensions/xhtml/(.*)$ specs/1.0-extensions/html/$1 [L,R=301]
RewriteRule ^specs/1.0-wsi_extensions/xhtml/(.*)$ specs/1.0-wsi_extensions/html/$1 [L,R=301]
RewriteRule ^specs/1.0/xhtml/(.*)$ specs/1.0/html/$1 [L,R=301]
RewriteRule ^specs/1.0/man/html/([PpVv].*\.html)$ specs/1.2-extensions/man/html/$1 [L,R=301,NC]
RewriteRule ^specs/1.1-extensions/man/html/([PpVv].*\.html)$ specs/1.2-extensions/man/html/$1 [L,R=301,NC]
RewriteRule ^specs/1.0/apispec\.(.*)$ specs/1.0/README.md [L,R=301]
RewriteRule ^specs/1.[01]/styleguide.html$ specs/1.2/styleguide.html [L,R=301]