帝国会员空间链接伪静态规则

作者:猪八逗科技
RewriteEngine On

RewriteRule ^u\/([0-9]+).html$ /e/space/?userid=$1&r=1 [L]
RewriteCond %{QUERY_STRING} ^userid=([0-9]+)$ [NC]
RewriteRule ^e/space/?$ /u/%1.html? [L,R=301]

RewriteRule ^u\/([0-9]+)/UserInfo\.html$ e/space/UserInfo.php?userid=$1&r=1 [L]
RewriteCond %{QUERY_STRING} ^userid=([0-9]+)$ [NC]
RewriteRule ^e/space/UserInfo.php?$ /u/%1/UserInfo.html? [L,R=301]

RewriteRule ^u\/([0-9]+)/gbook\.html$ e/space/gbook.php?userid=$1&r=1 [L]
RewriteCond %{QUERY_STRING} ^userid=([0-9]+)$ [NC]
RewriteRule ^e/space/gbook.php?$ /u/%1/gbook.html? [L,R=301]
 
RewriteRule ^u\/([0-9]+)/list_([0-9]+)\.html$ e/space/list.php?userid=$1&mid=$2&r=1 [L]
RewriteCond %{QUERY_STRING} ^userid=([0-9]+)&mid=([0-9]+)$ [NC]
RewriteRule ^e/space/list.php?$ /u/%1/list_%2.html? [L,R=301]
  热门搜索