blob: 79fef71c917c76bb1a1e5796d4d0787d6cbffc0c [file] [edit]
# .htaccess to rewrite OpenCL 3.0 spec and refpages to the new "unified"
# (ala "latest") naming scheme, per
# https://github.com/KhronosGroup/OpenCL-Registry/issues/178
# So specs/1.3-extensions/man/html/ lists all the refpages
Options +Indexes
RewriteEngine on
# Avoid redirect loops
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule ^ - [L]
# RewriteBase /OpenCL/
# Unified specs and refpages are all under specs/unified/ now, and the
# current API version is no longer in the URL.
RewriteRule ^specs/3.0-unified/(.*)$ https://registry.khronos.org/OpenCL/specs/unified/$1 [L,R=301]
RewriteRule ^sdk/3.0/docs/(.*)$ https://registry.khronos.org/OpenCL/specs/unified/refpages/$1 [L,R=301]
# Extension spec has been merged into API spec
RewriteRule ^specs/unified/html/OpenCL_Ext.html https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html [L,R=301]
RewriteRule ^specs/unified/pdf/OpenCL_Ext.pdf https://registry.khronos.org/OpenCL/specs/unified/pdf/OpenCL_API.pdf [L,R=301]