考试中心伪静态规则-Discuz教程下载

考试中心伪静态规则

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

httpd.ini

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

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

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

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

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

全部评论 0

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