• 公告栏使用li标签,同时你可以使用FontAwesome以及其他HTML语法
  • FontAwesome示例
  • 优秀软件的作用是让复杂的东西看起来简单@Grady Booch (UML创始人之一)

Godaddy空间中WordPress实现静态URL

电脑网络 shaobo 32次浏览 1675字 0个评论

  Godaddy免费空间的windows主机想要运行php程序是要装IIS7.0的,而ASP可以选择1.1的,这样也可以减少出现广告的几率。wordpress在IIS7.0下其实也是能够实现地址URL的永久静态化的。只要在wordpress的安装目录下新建web.config文件:
      

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Imported Rule 17"> <match url="^archiver/((fid|tid)-[\w\-]+\.html)$" ignoreCase="false"/> <action type="Rewrite" url="archiver/index.php?{R:1}" appendQueryString="false"/> </rule> <rule name="Imported Rule 18"> <match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="false"/> <action type="Rewrite" url="forumdisplay.php?fid={R:1}&amp;page={R:2}" appendQueryString="false"/> </rule> <rule name="Imported Rule 19"> <match url="^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false"/> <action type="Rewrite" url="viewthread.php?tid={R:1}&amp;extra=page\%3D{R:3}&amp;page={R:2}" appendQueryString="false"/> </rule> <rule name="Imported Rule 20"> <match url="^space-(username|uid)-(.+)\.html$" ignoreCase="false"/> <action type="Rewrite" url="space.php?{R:1}={R:2}" appendQueryString="false"/> </rule> <rule name="Imported Rule 21"> <match url="^tag-(.+)\.html$" ignoreCase="false"/> <action type="Rewrite" url="tag.php?name={R:1}" appendQueryString="false"/> </rule> <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> <httpErrors errorMode="Detailed"/> <asp scriptErrorSentToBrowser="true"/> </system.webServer> <system.web> <customErrors mode="Off"/> <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"/> </system.web> </configuration>

喜欢 (0)

您必须 登录 才能发表评论!