# 将 RewriteEngine 模式打开 RewriteEngine On #列表页-分页:/1/index_2.html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^([0-9]+)/index_([0-9]+).html$ /index.php?m=Home&c=List&a=index&catid=$1&p=$2 [L,QSA] #[QSA] 追加查询字符串 不能删除 #列表页:/1/index.html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^([0-9]+)/index.html$ /index.php?m=Home&c=List&a=index&catid=$1 [L,QSA] #[QSA] 追加查询字符串 不能删除 #详情页:/1/3.html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^([0-9]+)/([0-9]+).html$ /index.php?m=Home&c=View&a=index&catid=$1&id=$2 [L,QSA] #[QSA] 追加查询字符串 不能删除 #自定义列表页-分页:/pages_1/index_2.html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^pages_([0-9]+)/index_([0-9]+).html$ /index.php?m=Home&c=Pages&a=index&pages_id=$1&p=$2 [L,QSA] #[QSA] 追加查询字符串 不能删除 #自定义列表页:/pages_1/index.html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^pages_([0-9]+)/index.html$ /index.php?m=Home&c=Pages&a=index&pages_id=$1 [L,QSA] #[QSA] 追加查询字符串 不能删除 #自定义详情页:/page/1.html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^page/([0-9]+).html$ /index.php?m=Home&c=Page&a=index&page_id=$1 [L,QSA] #[QSA] 追加查询字符串 不能删除