問:[ 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,請您核實是否正常,非常感謝您長期對我司的支持!