2012-08-24 15 views

Odpowiedz

0

Innym dość szybkie rozwiązanie, w sytuacji, gdy korzysta z witryn Windows Azure jest użycie Microsoft WebMatrix, aby zalogować się na swojej stronie i po prostu utworzyć plik web.config as this article pointed out. To rozwiązuje. Nie musisz samodzielnie instalować ani innego podobnego urządzenia. MS Webmatrix wydaje się łatwo rozwiązać problem.

6

Użyj tego web.config

(web.config jest odpowiednikiem IIS do pliku .htaccess w Apache serwerach. Można go znaleźć w folderze głównym. Jeśli nie ma, trzeba utworzyć.)

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
<system.webServer> 
<defaultDocument> 
    <!-- Set the default document --> 
     <files> 
     <remove value="index.php" /> 
     <add value="index.php" /> 
     </files> 
    </defaultDocument> 
     <httpErrors errorMode="Detailed"/> 
    <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> 
</configuration> 

Następnie na stronie Permalinks ustaw "niestandardowy Structure" i podać wartość /%postname%/

+0

gdzie jest web.config –

+1

web.config to IIS równoważny z plikiem .htaccess w apache webservers. Można go znaleźć w folderze głównym. Jeśli go nie ma, musisz go utworzyć. – Binod