-
Notifications
You must be signed in to change notification settings - Fork 11
/
.htaccess
31 lines (24 loc) · 1.23 KB
/
.htaccess
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
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._]+)$ views/history.php?$1 [L,QSA]
RewriteRule ^psalm_open_issues$ views/psalm_open_issues.php [L,QSA]
# legacy
RewriteRule ^telemetry$ hooks/psalm [L,QSA]
RewriteRule ^$ views/index.php [L,QSA]