forked from nullraven/dc-mnnit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
35 lines (28 loc) · 1.07 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
DirectoryIndex /dc/site/index.php
#this is garbage
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/dc/([a-zA-Z0-9_-]+)\.php
RewriteRule ^(.*)$ /dc/site/$1
RewriteCond %{REQUEST_URI} ^/dc/([a-zA-Z0-9_-]+)$
RewriteRule ^(.*)$ /dc/site/$1\.php
RewriteCond %{REQUEST_URI} ^/dc/site/([a-zA-Z0-9_-]+)$
RewriteRule ^site/(.*)$ /dc/site/$1\.php
RewriteCond %{REQUEST_URI} ^/dc/api/([a-zA-Z0-9_-]+)$
RewriteRule ^api/(.*)$ /dc/api/$1\.php
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/gif "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType application/pdf "access 1 week"
ExpiresByType application/javascript "access 1 week"
ExpiresByType application/x-javascript "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 week"
ExpiresByType image/x-icon "access 1 week"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##