-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
36 lines (31 loc) · 1.2 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
# BEGIN Pak Jiddat Rewrite Rules
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteCond %{HTTPS} !on
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# RewriteCond %{HTTP_HOST} !^(www\.).+$
# RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_URI} !=/index.php
RewriteCond %{REQUEST_URI} !.*\.gif$ [NC]
RewriteCond %{REQUEST_URI} !.*\.png$ [NC]
RewriteCond %{REQUEST_URI} !.*\.jpg$ [NC]
RewriteCond %{REQUEST_URI} !.*\.ico$ [NC]
RewriteCond %{REQUEST_URI} !.*\.css$ [NC]
RewriteCond %{REQUEST_URI} !.*\.ttf$ [NC]
RewriteCond %{REQUEST_URI} !.*\.woff$ [NC]
RewriteCond %{REQUEST_URI} !.*\.woff2$ [NC]
RewriteCond %{REQUEST_URI} !.*\.js$ [NC]
RewriteCond %{REQUEST_URI} !.*\.mp3$ [NC]
RewriteCond %{REQUEST_URI} !.*\.tar.gz$ [NC]
RewriteCond %{REQUEST_URI} !.*\.sql.tar.bz2$ [NC]
RewriteCond %{REQUEST_URI} !.*\.db.tar.bz2$ [NC]
RewriteCond %{REQUEST_URI} !.*\.html$ [NC]
RewriteCond %{REQUEST_URI} !.*robots.txt$ [NC]
RewriteCond %{REQUEST_URI} !.*sitemap.txt$ [NC]
RewriteCond %{REQUEST_URI} !/framework/.*$ [NC]
RewriteRule .* /index.php [L]
</IfModule>
# END Pak Jiddat Rewrite Rules