Apache Web Server(独立主机用户):
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/pic-([0-9]+)\.html$ $1/plugin.php?id=comiis_imgshow&tid=$2&%1
- </IfModule>
复制代码 Apache Web Server(虚拟主机用户):
- # 将 RewriteEngine 模式打开
- RewriteEngine On
- # 修改以下语句中的 /Discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
- RewriteBase /discuz
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^pic-([0-9]+)\.html$ plugin.php?id=comiis_imgshow&tid=$1&%1
复制代码 IIS Web Server(独立主机用户):
- [ISAPI_Rewrite]
- # 3600 = 1 hour
- CacheClockRate 3600
- RepeatLimit 32
- # Protect httpd.ini and httpd.parse.errors files
- # from Accessing through HTTP
- RewriteRule ^(.*)/pic-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=comiis_imgshow&tid=$2&$4
复制代码 IIS7 Web Server(独立主机用户):
- <rewrite>
- <rules>
- <rule name="pic">
- <match url="^(.*/)*pic-([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=comiis_imgshow&tid={R:2}&{R:3}" />
- </rule>
- </rules>
- </rewrite>
复制代码 Zeus Web Server:
- match URL into $ with ^(.*)/pic-([0-9]+)\.html\?*(.*)$
- if matched then
- set URL = $1/plugin.php?id=comiis_imgshow&tid=$2&$3
- endif
复制代码 Nginx Web Server:
- <span style="font-weight: normal;">rewrite ^([^\.]*)/pic-([0-9]+)\.html$ $1/plugin.php?id=comiis_imgshow&tid=$2 last;
- if (!-e $request_filename) {
- return 404;
- }</span>
复制代码 |