Repository navigation
Expand file tree
/
Copy path.htaccess
More file actions
38 lines (30 loc) · 1.61 KB
/
Copy path.htaccess
File metadata and controls
38 lines (30 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Options -Indexes
RewriteEngine on
RewriteBase /
# 404s
RewriteRule ^database/?.*$ - [R=404,NC,L]
RewriteRule ^vendor/?.*$ - [R=404,NC,L]
RewriteRule ^src/?.*$ - [R=404,NC,L]
RewriteRule ^config.*$ - [R=404,NC,L]
RewriteRule ^hooks/github$ views/hooks/github.php [L,QSA]
RewriteRule ^hooks/psalm$ views/hooks/psalm.php [L,QSA]
RewriteRule ^hooks/phpunit$ views/hooks/phpunit.php [L,QSA]
RewriteRule ^auth/github$ views/auth/github.php [L,QSA]
RewriteRule ^auth/github/redirect$ views/auth/github_redirect.php [L,QSA]
RewriteRule ^auth/github/configure$ views/auth/github_configure.php [L,QSA]
RewriteRule ^reprocess/(.*)$ views/reprocess.php?sha=$1 [L,QSA]
RewriteRule ^github/([-\d\w._]+\/[-\d\w._]+)/coverage.svg$ views/shields/coverage.php?$1 [L,QSA]
RewriteRule ^github/([-\d\w._]+\/[-\d\w._]+)/coverage$ views/coverage_data.php?$1 [L,QSA]
RewriteRule ^github/([-\d\w._]+\/[-\d\w._]+)/level.svg$ views/shields/level.php?$1 [L,QSA]
RewriteRule ^github/([-\d\w._]+\/[-\d\w._]+)/level$ views/level_data.php?$1 [L,QSA]
RewriteRule ^github/([-\d\w._]+\/[-\d\w._]+)/history\.json$ views/history_json.php?$1 [L,QSA]
RewriteRule ^github/([-\d\w._]+\/[-\d\w._]+)$ views/history.php?$1 [L,QSA]
RewriteRule ^psalm_open_issues$ views/psalm_open_issues.php [L,QSA]
RewriteRule ^recent$ views/recent.php [L,QSA]
# legacy
RewriteRule ^telemetry$ hooks/psalm [L,QSA]
RewriteRule ^$ views/index.php [L,QSA]
# mod_deflate skips responses that are already encoded, so this never double-compresses.
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/json image/svg+xml
</IfModule>