2017-04-24 6 views
0

에 다시, 그래서 당신은 내가 정의 영구 링크 설치 재 작성 모드 http://sitename/%sample-post%/ 설정 내 로컬 호스트 IIS7에 :워드 프레스 영구 링크 내가 솔루션을 찾고에서 많은 시간을 보내고 IIS7

을 포기하기 전에 내 마지막 희망이다.

<configuration> 
    <system.webServer> 
    <defaultDocument> 
     <files> 
     <add value="index.php"/> 
     </files> 
    </defaultDocument> 
    <rewrite> 
     <rules> 
      <rule name="WordPress: http://tip4u03" 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> 
</configuration> 

wwwroot 디렉토리에서만 작동합니다. wwwroot 디렉토리 밖에서 404 반환 템플릿 페이지. 내 공유 iis7 서버 (VPS)에서 동일한 문제

답변

1

나는 문제를 해결했습니다! 사이트 위치에 문제가 없었습니다. 영구 링크가 히브리어로되어 있기 때문입니다. 나는이 링크에 따라 WP-config 파일

if (isset($_SERVER['UNENCODED_URL'])) { 
    $_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL']; 
} 

에 다음 조건을 추가 : Wordpress Hebrew permalinks 마지막으로

작업을!