问:[ IIS ] 如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:
RewriteRule (.*)$ /index\\.php\\?s=$1 [I]复制代码 在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:
<rewrite><rules><rule name="OrgPage" stopProcessing="true"><match url="^(.*)[ DISCUZ_CODE_1 ]quot; /><conditions logicalGrouping="MatchAll"><add input="{HTTP_HOST}" pattern="^(.*)[ DISCUZ_CODE_1 ]quot; /><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></conditions><action type="Rewrite" url="index.php/{R:1}" /></rule></rules></rewrite>
,开启伪静态 jhxf888.com
答:您好,您是使用的iis7 伪静态设置方法是上传web.config文件到站点根目录,目前使用您提供的规则设置了web.config,请您核实是否正常,非常感谢您长期对我司的支持!
问:[ IIS ] 如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:
RewriteRule (.*)$ /index\\.php\\?s=$1 [I]复制代码 在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:
<rewrite><rules><rule name="OrgPage" stopProcessing="true"><match url="^(.*)[ DISCUZ_CODE_1 ]quot; /><conditions logicalGrouping="MatchAll"><add input="{HTTP_HOST}" pattern="^(.*)[ DISCUZ_CODE_1 ]quot; /><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></conditions><action type="Rewrite" url="index.php/{R:1}" /></rule></rules></rewrite>
答:您好,您是使用的iis7 伪静态设置方法是上传web.config文件到站点根目录,目前使用您提供的规则设置了web.config,请您核实是否正常,非常感谢您长期对我司的支持!