%@ LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% '/////////////////////////////////////////////////////////////////////////////// '// 插件制作: ZSXSOFT '/////////////////////////////////////////////////////////////////////////////// %> <% Option Explicit %> <% On Error Resume Next %> <% Response.Charset="UTF-8" %> <% Dim RootPath Call System_Initialize() '检查非法链接 Call CheckReference("") '检查权限 If BlogUser.Level>1 Then Call ShowError(6) If CheckPluginState("STACentre")=False Then Call ShowError(48) BlogTitle="静态管理中心" RootPath=Replace(BlogPath,Replace(CookiesPath(),"/","\"),"\") Dim tempString If Request("mak")="1" Then Call SaveToFile(RootPath & "httpd.ini",MakeIIS6Rewrite2(),"iso-8859-1",False) Call SetBlogHint_Custom("创建httpd.ini成功!") End If If Request("mak")="2" Then Call SaveToFile(RootPath & ".htaccess",MakeIIS6Rewrite3(),"utf-8",False) Call SetBlogHint_Custom("创建.htaccess成功!") End If If Request("mak")="3" Then Call SaveToFile(BlogPath & "web.config",MakeIIS7UrlRewrite(),"utf-8",False) Call SetBlogHint_Custom("创建web.config成功!") End If If Request("add")="1" Then tempString=LoadFromFile(RootPath & "httpd.ini","iso-8859-1") If InStr(tempString,"[ISAPI_Rewrite]") Then tempString=Split(tempString,"[ISAPI_Rewrite]")(1) Call SaveToFile(RootPath & "httpd.ini",MakeIIS6Rewrite2() & vbCrLf & tempString,"iso-8859-1",False) Call SetBlogHint_Custom("追加httpd.ini成功!") End If If Request("del")="1" Then Call DelToFile(BlogPath & "httpd.ini") Call SetBlogHint_Custom("删除httpd.ini成功!") End If If Request("del")="2" Then Call DelToFile(BlogPath & ".htaccess") Call SetBlogHint_Custom("删除.htaccess成功!") End If If Request("del")="3" Then Call DelToFile(BlogPath & "web.config") Call SetBlogHint_Custom("删除web.config成功!") End IF Function FileExists(Path) FileExists=0 Dim fso Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(Path) Then FileExists=1 End If Set fso=Nothing End Function %>
请在网站根目录创建httpd.ini文件并把相关内容复制进去,httpd.ini文件必须为ANSI编码,也可以点击按钮生成.
请在网站根目录创建.htaccess文件并把相关内容复制进去,也可以点击按钮生成..
请在网站"当前目录"创建web.config文件并把相关内容复制进去,也可以点击按钮生成..
文章及页面和分类页都没有启用动态模式+Rewrite支持,所以没有可用规则.
<%End If%>