IIS, 버전 7.5에 Codeigniter 응용 프로그램을 배포하는 것과 관련하여 도움을 요청하고 싶습니다. Codeigniter 및 IIS와 관련된 다른 게시물을 읽으려고했지만 그 중 아무 것도 작동하지 않습니다. 아파치에서 잘 작동하는 CodeIgniter 1.7을 사용하여 응용 프로그램을 개발했지만 Windows 7 Ultimate에서 IIS 7.5에서 작동하도록 만들 수는 없습니다. 모든IIS 7.5의 Codeigniter 1.7
먼저, PHP는 이미 서버에서 작동하고, 내가 그것을 작동하게하는 알에게 단계를 따라, 또한 나는 PHP 응용 프로그램이 작동하고 같은 파일을 사용하기 위해 그 필요한 가정 것을 IIS_UrlRewriteModule 설치 htaccess. (서버에 phpinfo의 JPG가 첨부 됨). 이것은 로컬 서버 IIS 7.5입니다.
후 확인 PHP가 작동, 내가 C의 내부 웹 응용 프로그램의 폴더를 넣어 있는지 확인하십시오 : \을 Inetpub \ wwwroot에 \, 이것은 내가 아파치에서 사용하고 htaccess로이다 :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /application/index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /application/index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ application/index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 index.php
</IfModule>
"내가에 갈 때,
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="MyRule"> <match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
그러나 : 그리고 난 IIS와 함께 당신의 Web.config 파일을 사용한다는 것을 읽고, 그래서 난 유래의 다른 게시물의 예를 기반으로 파일을 생성하고 다음 코드가 http : // localhost/application "나는 이것을 얻는다 :
012 내가 넣어 경우 3,516,는 그리고 "HTTP를 ://localhost/application/index.php"나는 단지 응용 프로그램 루트 디렉토리 나 내가있는 경우의 Web.config이있는 경우 오류 (500) 내가 같은 상황을 얻을 수 루트 디렉토리의 .htaccess. 나는해야할 일을 모른다. 나를 도와주세요.
web.config 파일은 어디에 있는가 ?? –