diff options
Diffstat (limited to '3rdparty/js/angular-1.0.2/docs/.htaccess')
-rw-r--r-- | 3rdparty/js/angular-1.0.2/docs/.htaccess | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3rdparty/js/angular-1.0.2/docs/.htaccess b/3rdparty/js/angular-1.0.2/docs/.htaccess new file mode 100644 index 000000000..0bebc0ac0 --- /dev/null +++ b/3rdparty/js/angular-1.0.2/docs/.htaccess @@ -0,0 +1,18 @@ +## OFFLINE SUPPORT ## + +# These rules tell apache to check if there is a cookie called "offline", with value set to the +# current angular version. If this rule matches the appcache-offline.manifest will be served for +# requests to appcache.manifest +# +# This file must be processed by Rake in order to replace %ANGULAR_VERSION% with the actual version. + +RewriteEngine on +RewriteCond %{HTTP_COOKIE} ng-offline=1.0.2 +RewriteRule appcache.manifest appcache-offline.manifest + +## Redirect to the latest manifest +RewriteCond %{HTTP_HOST} ^docs-next\.angularjs\.org$ +RewriteRule appcache.manifest http://code.angularjs.org/next/docs/appcache.manifest [R=301] + +## HTML5 URL Support ## +RewriteRule ^(guide|api|cookbook|misc|tutorial)(/.*)?$ index.html |