01.
<?
xml
version
=
"1.0"
?>
02.
<
configuration
>
03.
<
system.webServer
>
04.
<
httpProtocol
>
05.
<
customHeaders
>
06.
<
add
name
=
"Access-Control-Allow-Origin"
value
=
"*"
/>
07.
<
add
name
=
"Access-Control-Allow-Methods"
value
=
"GET,PUT,POST,DELETE"
/>
08.
<
add
name
=
"Access-Control-Allow-Headers"
value
=
"Content-Type"
/>
09.
</
customHeaders
>
10.
</
httpProtocol
>
11.
<
rewrite
>
12.
<
rules
>
13.
<
rule
name
=
"Rewrite to index.php"
>
14.
<
match
url
=
"index.php|robots.txt|images|test.php"
/>
15.
<
action
type
=
"None"
/>
16.
</
rule
>
17.
<
rule
name
=
"Rewrite CI Index"
>
18.
<
match
url
=
".*"
/>
19.
<
conditions
>
20.
<
add
input
=
"{REQUEST_FILENAME}"
pattern
=
"css|js|jpg|jpeg|png|gif|ico|htm|html|pdf|doc|docx"
negate
=
"true"
/>
21.
</
conditions
>
22.
<
action
type
=
"Rewrite"
url
=
"index.php/{R:0}"
/>
23.
</
rule
>
24.
</
rules
>
25.
</
rewrite
>
26.
</
system.webServer
>
27.
<!--
29.
30.
The following attributes can be set on the <
httpRuntime
> tag.
31.
<
system.Web
>
32.
<
httpRuntime
targetFramework
=
"4.5"
/>
33.
</
system.Web
>
34.
-->
35.
<
system.web
>
36.
<
globalization
37.
requestEncoding
=
"utf-8"
38.
responseEncoding
=
"utf-8"
39.
/>
40.
<
compilation
targetFramework
=
"4.5"
/>
41.
<
pages
controlRenderingCompatibilityVersion
=
"3.5"
clientIDMode
=
"AutoID"
/>
42.
</
system.web
>
43.
</
configuration
>