伪静态规则如下:
httpd.ini
- RewriteRule ^(.*)/wenda(\?(.*))*$ $1/plugin.php\?id=hux_zhidao
复制代码 httpd.conf
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteRule ^(.*)/wenda\?*(.*)$ $1/plugin.php?id=<span style="line-height: 1.5;">hux_zhidao</span>
复制代码 .htAccess
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^wenda$ plugin.php?id=<span style="line-height: 1.5;">hux_zhidao</span>
复制代码 Nginx.txt
- rewrite ^([^\.]*)/wenda$ $1/plugin.php?id=<span style="line-height: 1.5;">hux_zhidao</span>
复制代码 web.Config
- <rule name="hux_zhidao_home">
- <match url="^(.*/)*wenda\?*(.*)[ Discuz_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=hux_zhidao&{R:2}" />
- </rule>
复制代码 添加好伪静态规则后,在域名后面添加:/wenda 即可访问。
|