-
Notifications
You must be signed in to change notification settings - Fork 15
/
.htaccess
executable file
·77 lines (69 loc) · 3.66 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Header set Access-Control-Allow-Origin "*"
<IfModule mod_mime.c>
AddType application/javascript js
AddType application/x-font-woff woff
AddType application/x-font-woff2 woff2
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</Ifmodule>
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-woff
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
Header append Vary User-Agent
</IfModule>
DirectoryIndex index.php index.html
Redirect 301 /docs/installation https://psalm.dev/docs/running_psalm/installation
Redirect 301 /docs/configuration https://psalm.dev/docs/running_psalm/configuration
Redirect 301 /docs/using_plugins https://psalm.dev/docs/running_psalm/plugins/using_plugins
Redirect 301 /docs/authoring_plugins https://psalm.dev/docs/running_psalm/plugins/authoring_plugins
Redirect 301 /docs/plugins_type_system https://psalm.dev/docs/running_psalm/plugins/plugins_type_system
Redirect 301 /docs/language_server https://psalm.dev/docs/running_psalm/language_server
Redirect 301 /docs/typing_in_psalm https://psalm.dev/docs/annotating_code/typing_in_psalm
Redirect 301 /docs/templated_annotations https://psalm.dev/docs/annotating_code/templated_annotations
Redirect 301 /docs/supported_annotations https://psalm.dev/docs/annotating_code/supported_annotations
Redirect 301 /docs/annotating_code/docblock_type_syntax https://psalm.dev/docs/annotating_code/typing_in_psalm
Redirect 301 /docs/fixing_code https://psalm.dev/docs/manipulating_code/fixing.md
RewriteEngine On
RewriteBase /
RewriteRule ^articles/([a-z0-9\-]+)/?$ /views/article.php?name=$1 [L,NC]
RewriteRule ^articles/?$ /views/articles/index.php [L,NC]
RewriteRule ^articles/auth/save/?$ /views/articles/auth_save.php [L,NC]
RewriteRule ^articles/auth/init/?$ /views/articles/auth_init.php [L,NC]
RewriteRule ^r/([a-z0-9]+)/(\w+)$ /views/snippet.php?r=$1&format=$2 [L,NC,QSA]
RewriteRule ^r/([a-z0-9]+)$ /views/snippet.php?r=$1 [L,NC]
RewriteRule ^check$ /views/check.php [L,NC]
RewriteRule ^add_code$ /views/add_code.php [L,NC]
RewriteRule ^quickstart/?$ /docs/installation [R]
RewriteRule ^contribute/?$ /views/contribute.php [L,NC]
RewriteRule ^plugins/?$ /views/plugins.php [L,NC]
RewriteRule ^$ /views/index.php [L,NC]
RewriteRule ^schema/config$ /vendor/vimeo/psalm/config.xsd [L,NC]
RewriteRule ^[0-9]{3}\)?$ /views/issue_redirect.php [L,NC]
RewriteRule ^composer\.*$ - [F,L]
RewriteRule ^includes/?.*$ - [F,L]
RewriteCond %{REQUEST_URI} !^/vendor/vimeo/psalm/config\.xsd
RewriteRule ^vendor/?.*$ - [F,L]
RewriteRule ^.git/?.*$ - [F,L]
RewriteRule ^dbconfig.php.*$ - [F,L]
RewriteRule ^bin/?.*$ - [F,L]