问题互助平台 1.6 伪静态规则-Discuz教程下载

问题互助平台 1.6 伪静态规则

开通本站Svip会员,全站资源免费下
伪静态规则如下:
httpd.ini

  1. RewriteRule ^(.*)/wenda(\?(.*))*$ $1/plugin.php\?id=hux_zhidao
复制代码
httpd.conf

  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteRule ^(.*)/wenda\?*(.*)$ $1/plugin.php?id=<span style="line-height: 1.5;">hux_zhidao</span>
复制代码
.htAccess

  1. RewriteCond %{QUERY_STRING} ^(.*)$
  2. RewriteRule ^wenda$ plugin.php?id=<span style="line-height: 1.5;">hux_zhidao</span>
复制代码
Nginx.txt

  1. rewrite ^([^\.]*)/wenda$ $1/plugin.php?id=<span style="line-height: 1.5;">hux_zhidao</span>
复制代码
web.Config

  1. <rule name="hux_zhidao_home">
  2. <match url="^(.*/)*wenda\?*(.*)[        Discuz_CODE_3        ]quot; />
  3. <action type="Rewrite" url="{R:1}/plugin.php\?id=hux_zhidao&{R:2}" />
  4. </rule>
复制代码
添加好伪静态规则后,在域名后面添加:/wenda 即可访问。

全部评论 0

您需要登录后才可以回帖 立即登录
登录
0
0
0
返回顶部