/
.htaccess
67 lines (57 loc) · 2.57 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
# ------------------------------------------------------------------------------
# | Suppressing / Forcing the `www.` at the beginning of URLs |
# ------------------------------------------------------------------------------
# The same content should never be available under two different URLs,
# especially not with and without `www.` at the beginning. This can cause
# SEO problems (duplicate content), and therefore, you should choose one
# of the alternatives and redirect the other one.
# By default `Option 1` (no `www.`) is activated.
# http://no-www.org/faq.php?q=class_b
# If you would prefer to use `Option 2`, just comment out all the lines
# from `Option 1` and uncomment the ones from `Option 2`.
# IMPORTANT: NEVER USE BOTH RULES AT THE SAME TIME!
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Option 1: rewrite www.example.com → example.com
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^www\.vaughnwalters\.com$ [NC]
RewriteRule ^ https://vaughnwalters\.com%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.vaughnwalters\.com$ [NC]
RewriteRule ^ https://vaughnwalters\.com%{REQUEST_URI} [R=301,L]
</IfModule>
#<ifModule mod_headers.c>
# Header set Connection keep-alive
#</ifModule>
#
#<IfModule mod_expires.c>
#ExpiresActive On
#AddType application/vnd.ms-fontobject .eot
#AddType application/x-font-ttf .ttf
#AddType application/x-font-opentype .otf
#AddType application/x-font-woff .woff
#AddType image/svg+xml .svg
#ExpiresByType application/vnd.ms-fontobject "access 1 year"
#ExpiresByType application/x-font-ttf "access 1 year"
#ExpiresByType application/x-font-opentype "access 1 year"
#ExpiresByType application/x-font-woff "access 1 year"
#ExpiresByType image/svg+xml "access 1 year"
#ExpiresByType text/html "access 1 hour"
#ExpiresByType text/css "access 14 days"
#ExpiresByType text/x-javascript "access 3 weeks"
#ExpiresByType application/javascript "access 1 month"
#ExpiresByType application/x-javascript "access 1 month"
#ExpiresByType image/gif "access 2 months"
#ExpiresByType image/png "access 2 months"
#ExpiresByType image/jpg "access 2 months"
#ExpiresByType image/jpeg "access 2 months"
#ExpiresByType image/gif "access 2 months"
#ExpiresByType application/pdf "access 1 year"
#ExpiresByType application/x-shockwave-flash "access 1 year"
#ExpiresByType image/x-icon "access 1 year"
#ExpiresDefault "access 2 days"
#</IfModule>
# slip PHP some crack
php_value upload_max_filesize 70M
php_value post_max_size 80M
php_value memory_limit 90M
php_value max_execution_time 240
php_value max_input_time 240