-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit with version 0.9.0 -> 1.0.1
- Loading branch information
0 parents
commit 2ce1127
Showing
12,064 changed files
with
2,187,463 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
wlizer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
Options +Indexes | ||
IndexIgnore favicon.ico | ||
RewriteEngine on | ||
|
||
RewriteCond %{HTTP_HOST} ^docs-next\.angularjs\.org$ [nc] | ||
RewriteRule ^(.*)$ http://docs.angularjs.org/$1 [r=301,nc] | ||
|
||
|
||
RewriteCond %{HTTP_HOST} ^angularjs\.com$ [nc] | ||
RewriteRule ^(.*)$ http://angularjs.org/$1 [r=301,nc] | ||
|
||
|
||
|
||
# Enable Crawling of AJAX apps. | ||
# See: http://code.google.com/web/ajaxcrawling/docs/getting-started.html | ||
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=\/(.*)$ | ||
RewriteRule ^(.*)$ /$1/%1.html? | ||
|
||
# Map versiond angular files to root folder. | ||
RewriteRule ^angular([\-\w]+)(\d+\.\d+\.[\d\w\-]+)(.*)$ /$2/angular$1$2$3 | ||
# Map 1.2.3/docs to 1.2.3/docs-1.2.3/ so that we don't need the version in the URL twice | ||
RewriteRule ^(\d+\.\d+\.[\d\w]+)/docs/(.*)$ /$1/docs-$1/$2 | ||
|
||
# If the user has forgot the trailing slash than add it through redirect | ||
RewriteRule ^latest$ /latest/ [R] | ||
RewriteRule ^latest/docs$ /latest/docs/ [R] | ||
|
||
# To change the latest version just change this line. | ||
# IMPORTANT: the order of lines matters, do not move to top! | ||
#RewriteRule ^latest/(.*?)((?:\.min)?\.js)$ /1.0.1/$1-1.0.1$2 | ||
RewriteRule ^latest/(.*)$ /1.0.1/$1 | ||
|
||
# If the request comes on http://docs.angularjs.org then point it to latest/docs | ||
RewriteCond %{HTTP_HOST} ^docs\.angularjs\.org$ | ||
RewriteCond %{REQUEST_URI} !^/\d+\.\d+\.\d+ | ||
RewriteCond %{REQUEST_URI} !^/latest | ||
RewriteCond %{REQUEST_URI} !^/angular- | ||
RewriteCond %{REQUEST_URI} !^/favicon.ico | ||
RewriteRule ^(.*)$ /latest/docs/$1 | ||
|
||
## NEXT ## | ||
|
||
# RewriteRule ^0\.10\.\d+/docs-0\.10\.\d+/appcache\.manifest$ /next/docs/appcache.manifest [L] | ||
# RewriteRule ^0.10.[0-9]+/docs-0.10.[0-9]+/appcache.manifest$ /next/docs/appcache.manifest [L] | ||
# RewriteRule ^(foo)$ /X/$1 [R] | ||
|
||
# If the user has forgot the trailing slash than add it through redirect | ||
RewriteRule ^next$ /next/ [R] | ||
RewriteRule ^next/docs$ /next/docs/ [R] | ||
|
||
# To change the latest version just change this line. | ||
# IMPORTANT: the order of lines matters, do not move to top! | ||
RewriteRule ^next/(.*)$ /1.0.0rc6/$1 | ||
|
||
|
||
# If the request comes on http://docs-next.angularjs.org and asks for a versioned appcache manifest | ||
# point it to the lastest manifest next/docs | ||
# RewriteCond %{HTTP_HOST} ^docs-next\.angularjs\.org$ | ||
# RewriteCond %{REQUEST_URI} ^0\.10\.\d+/docs-0\.10\.\d+/appcache\.manifest$ | ||
# RewriteRule ^(.*)$ /next/docs/appcache.manifest | ||
|
||
|
||
|
||
# If the request comes on http://docs-next.angularjs.org then point it to next/docs | ||
#RewriteCond %{HTTP_HOST} ^docs-next\.angularjs\.org$ | ||
#RewriteCond %{REQUEST_URI} !^/\d+\.\d+\.\d+ | ||
#RewriteCond %{REQUEST_URI} !^/next | ||
#RewriteCond %{REQUEST_URI} !^/angular- | ||
#RewriteCond %{REQUEST_URI} !^/favicon.ico | ||
#RewriteRule ^(.*)$ /next/docs/$1 | ||
|
||
|
||
## PERFORMANCE ## | ||
|
||
ExpiresActive On | ||
|
||
# cache js files for one year | ||
<FilesMatch "^angular-(ie-compat-)?[\d\.]+(\.min)?\.js"> | ||
ExpiresDefault "access plus 1 year" | ||
</FilesMatch> | ||
|
||
# don't cache appcache manifests | ||
<FilesMatch "\.manifest$"> | ||
ExpiresDefault "access" | ||
</FilesMatch> | ||
|
||
# cache everything else for 1h | ||
ExpiresDefault "access plus 60 minutes" | ||
|
||
|
||
# compression | ||
SetOutputFilter DEFLATE | ||
Header set Vary "Accept-Encoding" | ||
|
||
|
||
# content types | ||
AddType application/javascript js | ||
AddType text/cache-manifest .manifest | ||
|
Oops, something went wrong.