-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
21 lines (17 loc) · 700 Bytes
/
Copy path.htaccess
File metadata and controls
21 lines (17 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^api\.(.*) [NC]
RewriteRule .* api.php [L]
# acme-challenge exception for lets encrypt ssl cert verification
RewriteCond %{REQUEST_URI} !acme-challenge
RewriteRule !\.(png|gif|jpg|jpeg|ico|js|css|php|htm|html|swf|mp3|txt|pdf|doc|docx|xls|xlsx|zip|rar|ppt|pptx|xml|ttf|woff|eot|otf)$ index.php
RewriteRule ^sitemap.xml sitemap.php
RewriteRule ^robots.txt robots.php
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=31536000"
</FilesMatch>
Header set Access-Control-Allow-Origin "*"
</IfModule>