-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.htaccess
executable file
·145 lines (120 loc) · 7.12 KB
/
build.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
DirectoryIndex index.html index.htm
ErrorDocument 404 /index.html
<IfModule mod_rewrite.c>
RewriteEngine on
## Preview-Manage.makershare.com
RewriteCond %{HTTP_REFERER} !^http://preview-manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://preview-manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://preview-manage.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://preview-manage.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.preview-manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.preview-manage.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.preview-manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.preview-manage.makershare.com$ [NC]
## Preview.makershare.com
RewriteCond %{HTTP_REFERER} !^http://preview.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://preview.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://preview.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://preview.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.preview.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.preview.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.preview.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.preview.makershare.com$ [NC]
## Riosnewmakershare.makershare.com
RewriteCond %{HTTP_REFERER} !^https://riosnewmakershare.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://riosnewmakershare.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://riosnewmakershare.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://riosnewmakershare.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.riosnewmakershare.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.riosnewmakershare.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.riosnewmakershare.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.riosnewmakershare.makershare.com$ [NC]
## Manage.makershare.com
RewriteCond %{HTTP_REFERER} !^http://manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://manage.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://manage.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manage.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.manage.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.manage.makershare.com$ [NC]
## Makershare.com
RewriteCond %{HTTP_REFERER} !^http://makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.makershare.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.makershare.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.makershare.com$ [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .*\.()$ - [F,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule "/\.|^\.(?!well-known/)" - [F]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^ index.html [L]
<If "%{HTTP_HOST} == 'preview.makershare.com'">
RewriteRule "^sitemap.xml/(.*)$" "https://preview-manage.makershare.com/sitemap.xml" [P]
RewriteRule ^robots\.txt$ /robots.php [L]
</If>
<Else>
RewriteRule "^sitemap.xml/(.*)$" "https://manage.makershare.com/sitemap.xml" [P]
RewriteCond %{HTTP_HOST} www.makershare.com
RewriteRule (.*) https://makershare.com/$1 [R=301,L]
</Else>
<IfModule mod_headers.c>
# Serve gzip compressed CSS files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)\.css $1\.css\.gz [QSA]
# Serve gzip compressed JS files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
# Serve correct content types, and prevent mod_deflate double gzip.
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]
# Rewrite all requests for JS and CSS files to files of the same name, without
# any numbers in them. This lets the JS and CSS be force out of cache easily
# by putting a number at the end of the filename
# e.g. a request for static/js/site-52.js will get the file static/js/site.js instead.
#RewriteRule ^static/(js|css)/([a-z]+)-([0-9]+)\.(js|css)$ /site/$1/$2.$4 [R=302,NC,L]
<FilesMatch "(\.js\.gz|\.css\.gz)$">
# Serve correct encoding type.
Header set Content-Encoding gzip
# Force proxies to cache gzipped & non-gzipped css/js files separately.
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>
</IfModule>
<IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
<FilesMatch \.php$>
# Do not allow PHP scripts to be cached unless they explicitly send cache
# headers themselves. Otherwise all scripts would have to overwrite the
# headers set by mod_expires if they want another caching behavior. This may
# fail if an error occurs early in the bootstrap process, and it may cause
# problems if a non-Drupal PHP file is installed in a subdirectory.
ExpiresActive Off
</FilesMatch>
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# NOTE this account's php is controlled via FPM and the vhost, this is a place holder.
# Do not edit. This next line is to support the cPanel php wrapper (php_cli).
# AddType application/x-httpd-ea-php70 .php .phtml
# php -- END cPanel-generated handler, do not edit