1、在插件件后台把开关”是否启用伪静态地址"设置为是;
2、请参照下面的代码,把相应的规则添加到你对应的服务器伪静态文件中去(比如apache是.htAccess文件,iis是httpd.ini文件,Nginx是nginx.conf文件中的server段)
(1)、Apache Web Server(独立主机用户)- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/show_c([0-9]*)_t([0-9]*)_f([0-9]*)_o([0-9]*)_s([0-9]*)_p([0-9]*)\.html$ $1/plugin.php?id=waterfall:waterfall&fid=$2&typeid=$3&filter=$4&orderby=$5&sub=$6&page=$7&%1
复制代码 (2)、Apache Web Server(虚拟主机用户)- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^show_c([0-9]*)_t([0-9]*)_f([0-9]*)_o([0-9]*)_s([0-9]*)_p([0-9]*)\.html$ plugin.php?id=waterfall:waterfall&fid=$1&typeid=$2&filter=$3&orderby=$4&sub=$5&page=$6&%1
复制代码 (3)、IIS Web Server(独立主机用户)- RewriteRule ^(.*)/show_c([0-9]*)_t([0-9]*)_f([0-9]*)_o([0-9]*)_s([0-9]*)_p([0-9]*)\.html(\?(.*))*$ $1/plugin\.php\?id=waterfall:waterfall&fid=$2&typeid=$3&filter=$4&orderby=$5&sub=$6&page=$7
复制代码 (4)、IIS7 Web Server(独立主机用户)- <rule name="waterfall">
- <match url="^(.*/)*show_c([0-9]*)_t([0-9]*)_f([0-9]*)_o([0-9]*)_s([0-9]*)_p([0-9]*)\.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=waterfall:waterfall&fid={R:2}&typeid={R:3}&filter={R:4}&orderby={R:5}&sub={R:6}&page={R:7}" />
- </rule>
复制代码 (5)、Nginx Web Server- RewriteRule ^([^\.]*)/show_c([0-9]*)_t([0-9]*)_f([0-9]*)_o([0-9]*)_s([0-9]*)_p([0-9]*)\.html$ $1/plugin.php?id=waterfall:waterfall&fid=$2&typeid=$3&filter=$4&orderby=$5&sub=$6&page=$7 last;
复制代码 3、把插件在主导航中的菜单项的链接地址由原来的plugin.php?id=waterfall:waterfall改为show_c_t_f_o_s_p.html即可。 |