2012-12-07 2 views
1

많은 aspx 페이지가있는 사이트가 있습니다. aspx 페이지에 오류가 발생합니다.

는 최근 모든 게시물에 index.php를 제거하기 위해 영구 링크 변경하려고 지금

메신저 .. 작업 루트에 워드 프레스 블로그를 추가했다. 사용

<configuration> 
<system.webServer> 
    <rewrite> 
     <rules> 
      <rule name="wordpress" patternSyntax="Wildcard"> 
       <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" /> 
      </rule> 
     </rules> 
    </rewrite> 
</system.webServer> 
이제

내 영문 페이지 :

재 작성 2.0, 빠른 CGI, PHP 5

나는 내 web.config 파일과 워드 프레스 꽤 영구 링크와 함께 완벽하게 작동이 코드를 추가 다시 작성하는 것은 나에게 404를주는로드에 실패하고 있습니다 ... 일단 web.config aspx 페이지에서 위의 코드를 제거하면 모두 괜찮습니다!

누구나 아이디어가있는 사람이라면 누구나이 작업을 수행 할 수 있습니까?

감사

답변

0

내가 노력 제안 :

<system.webServer> 
    <rewrite> 
    <rules> 
     <rule name="wordpress" patternSyntax="Wildcard"> 
      <match url="*.aspx" negate="true" /> 
       <conditions> 
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> 
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
       </conditions> 
      <action type="Rewrite" url="index.php" /> 
     </rule> 
    </rules> 
    </rewrite> 
</system.webServer> 

이 내가 당신이 여기에 달성하려고하는 것입니다 생각의 index.php에 에서 .aspx 요청 제외한 모든 보내야합니다. 주요 변경 사항은 다음과 같습니다. "* 영문"

일치하는 URL = 무효화 = "true"를

+0

감사합니다, 당신이 만들어 내 하루 :)이 완벽하게 작동 .. – user1884655

관련 문제