GoDaddy Windows主机上设置WordPress的伪静态

笨狐狸 发表于 免费空间 分类,
0

WordPress官方在IIS7下面伪静态的方法:在根目录下面新建web.config文件,粘贴如下代码:

 <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> 
</configuration>

随机日志
« 上一篇: :下一篇 »

发表我的评论

icon_wink.gif icon_neutral.gif icon_mad.gif icon_twisted.gif icon_smile.gif icon_eek.gif icon_sad.gif icon_rolleyes.gif icon_razz.gif icon_redface.gif icon_surprised.gif icon_mrgreen.gif icon_lol.gif icon_idea.gif icon_biggrin.gif icon_evil.gif icon_cry.gif icon_cool.gif icon_arrow.gif icon_confused.gif icon_question.gif icon_exclaim.gif