|
|
Apache Web Server(独立主机用户)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/fa\.html$ $1plugin.php?id=moeac_grantcard%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/fa_list\.html$ $1plugin.php?id=moeac_grantcard&ac=all%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/fa_list-(\d+)-(\d+)-(\d+)-([0A-Z]+)\.html(\?keyword=.*)?$ $1plugin.php?id=moeac_grantcard&ac=all&hot=$2&class=$3&status=$4&letter=$5
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/fa_info-(\d+)\.html$ $1plugin.php?id=moeac_grantcard&ac=card&cid=$2%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/fa_my\.html$ $1plugin.php?id=moeac_grantcard&ac=mysend%1
</IfModule>
Apache Web Server(虚拟主机用户)
# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /discuz
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^fa\.html$ plugin.php?id=moeac_grantcard%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^fa_list\.html$ plugin.php?id=moeac_grantcard&ac=all%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^fa_list-(\d+)-(\d+)-(\d+)-([0A-Z]+)\.html(\?keyword=.*)?$ plugin.php?id=moeac_grantcard&ac=all&hot=$1&class=$2&status=$3&letter=$4%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^fa_info-(\d+)\.html$ plugin.php?id=moeac_grantcard&ac=card&cid=$1%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^fa_my\.html$ plugin.php?id=moeac_grantcard&ac=mysend%1
# Rewrite 系统规则请勿修改
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 ^(.*)/fa\.html$ $1plugin\.php?id=moeac_grantcard
RewriteRule ^(.*)/fa_list\.html$ $1plugin\.php?id=moeac_grantcard&ac=all
RewriteRule ^(.*)/fa_list-(\d+)-(\d+)-(\d+)-([0A-Z]+)\.html(\?keyword=.*)?$ $1plugin\.php?id=moeac_grantcard&ac=all&hot=$2&class=$3&status=$4&letter=$5
RewriteRule ^(.*)/fa_info-(\d+)\.html$ $1plugin\.php?id=moeac_grantcard&ac=card&cid=$2
RewriteRule ^(.*)/fa_my\.html$ $1plugin\.php?id=moeac_grantcard&ac=mysend
IIS7 Web Server(独立主机用户)
<rewrite>
<rules>
<rule name="fa_moeac">
<match url="^(.*/)*/fa.html$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=moeac_grantcard" />
</rule>
<rule name="fa_list_moeac">
<match url="^(.*/)*/fa_list.html$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=moeac_grantcard&ac=all" />
</rule>
<rule name="fa_list_p_moeac">
<match url="^(.*/)*/fa_list-(\d+)-(\d+)-(\d+)-([0A-Z]+).html(\?keyword=.*)?$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=moeac_grantcard&ac=all&hot={R:2}&class={R:3}&status={R:4}&letter={R:5}" />
</rule>
<rule name="fa_info_moeac">
<match url="^(.*/)*/fa_info-(\d+).html$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=moeac_grantcard&ac=card&cid={R:2} />
</rule>
<rule name="fa_my_moeac">
<match url="^(.*)*/fa_my.html$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=moeac_grantcard&ac=mysend" />
</rule>
</rules>
</rewrite>
Zeus Web Server
match URL into $ with ^(.*/)/fa\.html$
if matched then
set URL = $1/plugin.php?id=moeac_grantcard
endif
match URL into $ with ^(.*)/fa_list\.html$
if matched then
set URL = $1/plugin.php?id=moeac_grantcard&ac=all
endif
match URL into $ with ^(.*)/fa_list-(\d+)-(\d+)-(\d+)-([0A-Z]+)\.html(\?keyword=.*)?$
if matched then
set URL = $1/plugin.php?id=moeac_grantcard&ac=all&hot=$2&class=$3&status=$4&letter=$5
endif
match URL into $ with ^(.*)/fa_info-(\d+)\.html$
if matched then
set URL = $1/plugin.php?id=moeac_grantcard&ac=card&cid=$2
endif
match URL into $ with ^(.*)/fa_my\.html$
if matched then
set URL = $1/plugin.php?id=moeac_grantcard&ac=mysend
endif
Nginx Web Server
rewrite ^([^\.]*)/fa\.html$ $1/plugin.php?id=moeac_grantcard last;
rewrite ^([^\.]*)/fa_list\.html$ $1/plugin.php?id=moeac_grantcard&ac=all last;
rewrite ^([^\.]*)/fa_list-(\d+)-(\d+)-(\d+)-([0A-Z]+)\.html(\?keyword=.*)?$ $1/plugin.php?id=moeac_grantcard&ac=all&hot=$2&class=$3&status=$4&letter=$5 last;
rewrite ^([^\.]*)/fa_info-(\d+)\.html$ $1/plugin.php?id=moeac_grantcard&ac=card&cid=$2 last;
rewrite ^([^\.]*)/fa_my\.html$ $1/plugin.php?id=moeac_grantcard&ac=mysend last;
if (!-e $request_filename) {
return 404;
}
|
|