-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgreengeeks.htaccess
executable file
·44 lines (35 loc) · 1.54 KB
/
greengeeks.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
RewriteEngine On
RewriteBase /
# exclude any paths that are not codeigniter-app related
RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{REQUEST_URI} !^/server-info
RewriteCond %{REQUEST_URI} !^/docs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# ------------------------------------------------------------------------------
# Remove index.php
# ------------------------------------------------------------------------------
# Use this if URL is permanent (has own domain). Comment out the similar rule below.
<IfModule mod_php5.c>
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
# the following is for rewritting under FastCGI
<IfModule !mod_php5.c>
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
# Use this if URL is temporary (http://184.154.69.106/~mywebsite/. Comment out the similar rule above.
#<IfModule mod_php5.c>
# RewriteRule ^(.*)$ /~mywebsite/index.php/$1 [L]
#</IfModule>
# the following is for rewritting under FastCGI
#<IfModule !mod_php5.c>
# RewriteRule ^(.*)$ /~mywebsite/index.php/$1 [L]
#</IfModule>
# ------------------------------------------------------------------------------
# Files and directories accessible via HTTP request
# ------------------------------------------------------------------------------
# RewriteCond $1 !^(index\.php|resources|robots\.txt|favicon|uploads)
# ------------------------------------------------------------------------------
# Unknown MIME Types Fix
# ------------------------------------------------------------------------------
AddType application/x-font-woff .woff