2010-11-27 72 views
1

我已經安裝的WordPress博客v2.9.2在我的網站在位置www.22shruti.com/blog/(共享IIS 7.0沒有URL重寫模塊託管(沒有管理員權限的託管共享IIS7服務器),PHP 5.2.13 FastCGI,WHB操作系統2008,沒有URL重寫模塊安裝。)如何安裝WordPress的漂亮永久鏈接上安裝

因爲漂亮的固定鏈接從SEO的角度來看是有用的,當我嘗試將WP固定鏈接設置更改爲自定義「/% %%/%monthnum%/%postname%/「通過管理員,我在www.22shruti.com/blog/上獲得以下消息:

」找不到對不起,但您正在尋找不在此處的東西。

什麼是一步一步的解決方案,以實現在這種情況下所期望的永久鏈接的格式?幫助深表感謝

回答

3

我想你會在這裏找到了答案 - How To Set Pretty Permalinks in Wordpress Runs On IIS 7我想你需要把一個web.config文件中的根文件夾,如:

<?xml version="1.0"?> 
<configuration> 
<system.webServer> 
<defaultDocument> 
    <files> 
    <remove value="index.php" /> 
    <add value="index.php" /> 
    </files> 
</defaultDocument> 
<rewrite> 
<rules> 
    <rule name="Main Rule" stopProcessing="true"> 
     <match url=".*" /> 
     <conditions logicalGrouping="MatchAll"> 
      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> 
      <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
     </conditions> 
     <action type="Rewrite" url="index.php/{R:0}" /> 
    </rule> 
</rules> 
</rewrite> 
</system.webServer> 
</configuration>