2014-03-24 2 views
2

나는 창백한 플랫폼에서 웹 사이트를 개발하기 위해 실험하고 있습니다. 내 codeigniter 프로젝트에서 URL에서 index.php를 제거하고 싶습니다. 어디서 푸른 관리 패널에서 web.config 파일이 모르는,Windows에서 codeigniter의 URL에서 index.php를 제거하십시오. azure

Solution

그러나 :

여기 한 해결책을 발견?

정확한 위치를 알려주시겠습니까? 웹 사이트에서 해당 파일을 변경할 수 있습니까?

감사합니다.

답변

4

이 web.config는 codeigniter와 함께 작동해야합니다. (당신의 index.php가 어디 폴더)를

그냥

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <system.webServer> 
     <rewrite> 
      <rules> 
       <rule name="Rule" stopProcessing="true"> 
        <match url="^(.*)$" ignoreCase="false" /> 
         <conditions> 
          <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> 
          <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> 
          <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" /> 
         </conditions> 
         <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" /> 
       </rule> 
      </rules> 
     </rewrite> 
    </system.webServer> 
</configuration> 

날 당신이 얻을 방법을 알고하자라는 파일의 Web.config를 만들고 푸른에 wwwroot 폴더에 업로드!

감사

+0

감사합니다 .. 그것은 또한 laravel 작동 모두 1, 2도 젠드 프레임 워크에서 작동이 –

+1

그냥 보조 노트는,이 설정을 사용할 수있는 대부분의 PHP는 프레임 워크에서 작동해야 .. 일하고있어 –

관련 문제