Apache Web Server- # 简易图库开始
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_index\.html$ plugin.php?id=mini_photo:index&mod=default
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_list\.html$ plugin.php?id=mini_photo:index
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_tj\.html$ plugin.php?id=mini_photo:index&c=$1&d=$2&nsd=$3&types=tj
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_moren\.html$ plugin.php?id=mini_photo:index&c=$1&d=$2&nsd=$3&types=time
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_([0-9]+)\.html$ plugin.php?id=mini_photo:index&mod=view&sid=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_list_([0-9]+)_([0-9]+)\.html$ plugin.php?id=mini_photo:index&c=$1&d=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=mini_photo:index&c=$1&d=$2&nsd=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_user\.html$ plugin.php?id=mini_photo:mini_photo_user
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_user_add\.html$ plugin.php?id=mini_photo:mini_photo_user&p=add
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_user_guize\.html$ plugin.php?id=mini_photo:mini_photo_user&p=guize
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^photo_user_favorites\.html$ plugin.php?id=mini_photo:mini_photo_user&p=favorites
复制代码 Nginx Web Server规则- rewrite ^([^\.]*)/photo_index.html$ $1/plugin.php?id=mini_photo:index&mod=default last;
- rewrite ^([^\.]*)/photo_list.html$ $1/plugin.php?id=mini_photo:index last;
- rewrite ^([^\.]*)/photo_tj\.html$ $1/plugin.php?id=mini_photo:index:index&c=$2&d=$3&nsd=$4&types=tj last;
- rewrite ^([^\.]*)/photo_([0-9]+)\.html$ $1/plugin.php?id=mini_photo:index&mod=view&sid=$2 last;
- rewrite ^([^\.]*)/photo_list_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=mini_photo:index&c=$2&d=$3 last;
- rewrite ^([^\.]*)/photo_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=mini_photo:index&c=$2&d=$3&nsd=$4 last;
- rewrite ^([^\.]*)/photo_user\.html$ $1/plugin.php?id=mini_photo:mini_photo_user last;
- rewrite ^([^\.]*)/photo_user_add\.html$ $1/plugin.php?id=mini_photo:mini_photo_user&p=add last;
- rewrite ^([^\.]*)/photo_user_guize\.html$ $1/plugin.php?id=mini_photo:mini_photo_user&p=guize last;
- rewrite ^([^\.]*)/photo_user_favorites\.html$ $1/plugin.php?id=mini_photo:mini_photo_user&p=favorites last;
复制代码 IIS6- RewriteRule ^(.*)/photo_index\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:index&mod=default
- RewriteRule ^(.*)/photo_list\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:index
- RewriteRule ^(.*)/photo_tj\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:index&c=$2&d=$3&nsd=$4&types=tj
- RewriteRule ^(.*)/photo_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:index&mod=view&sid=$2
- RewriteRule ^(.*)/photo_list_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:index&c=$2&d=$3
- RewriteRule ^(.*)/photo_list_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:index&c=$2&d=$3&nsd=$4
- RewriteRule ^(.*)/photo_user\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:mini_photo_user
- RewriteRule ^(.*)/photo_user_add\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:mini_photo_user&p=add
- RewriteRule ^(.*)/photo_user_guize\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:mini_photo_user&p=guize
- RewriteRule ^(.*)/photo_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=mini_photo:mini_photo_user&p=favorites
复制代码 IIS7规则- <rule name="miniphoto1">
- <match url="^(.*/)*photo_index.html\?*(.*)[ Discuz_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:index&mod=default" />
- </rule>
- <rule name="miniphoto2">
- <match url="^(.*/)*photo_list.html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:index" />
- </rule>
- <rule name="miniphoto3">
- <match url="^(.*/)*photo_tj.html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:index&c={R:2}&d={R:3}&nsd={R:4}&types=tj" />
- </rule>
- <rule name="miniphoto4">
- <match url="^(.*/)*photo_([0-9]+).html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:index&mod=view&sid={R:2}" />
- </rule>
- <rule name="miniphoto5">
- <match url="^(.*/)*photo_list_([0-9]+)_([0-9]+).html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:index&c={R:2}&d={R:3}" />
- </rule>
- <rule name="miniphoto6">
- <match url="^(.*/)*photo_list_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:index&c={R:2}&d={R:3}&nsd={R:4}" />
- </rule>
- <rule name="miniphoto7">
- <match url="^(.*/)*photo_user.html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:mini_photo_user" />
- </rule>
- <rule name="miniphoto8">
- <match url="^(.*/)*photo_user_add.html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:mini_photo_user&p=add" />
- </rule>
- <rule name="miniphoto9">
- <match url="^(.*/)*photo_user_guize.html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:mini_photo_user&p=guize" />
- </rule>
- <rule name="miniphoto10">
- <match url="^(.*/)*photo_user_favorites.html\?*(.*)[ DISCUZ_CODE_2 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=mini_photo:mini_photo_user&p=favorites" />
- </rule>
复制代码 |