搞了一下午都没搞定。首页可以看到,二级页面访问就是404,部分rewrite代码如下
if (!-e $query_string) {
#RewriteEngine On
#RewriteBase /
rewrite "^Member$" index.php?n=user_index last;
rewrite "^Login$" index.php?n=user_login last;
rewrite "^Sign$" index.php?n=user_sign last;
rewrite "^Reset$" index.php?n=password last;
rewrite "^cp/login$" index.php?n=admin_login last;
rewrite "^cp-([a-z_]+).html$" index.php?n=cp_index&a=$1 last;
rewrite "^([a-z_]+).html$" index.php?n=$1 last;
rewrite "^([a-z_]+)-([0-9]+)$" index.php?n=cp_index&a=$1&id=$2 last;
rewrite "^delete-([a-z_]+)-([0-9]+)$" index.php?n=cp_index&a=$1&delete=$2 last;
rewrite "^ok-([a-z_]+)-([0-9]+)-([0-9])$" index.php?n=cp_index&a=$1&ok=$2&p=$3 last;
rewrite "^yes-([a-z_]+)-([0-9]+)-([0-9])$" index.php?n=cp_index&a=$1&no=$2&yes=$3 last;
rewrite "^([A-Za-z_]+)$" index.php?n=list&id=$1 last;
rewrite "^([A-Za-z_]+)-([0-9]+).html$" index.php?n=list&n_id=$1&p=$2 last;
rewrite "^([A-Za-z_]+)_([0-9]+).html$" index.php?n=list&id=$1&pp=$2 last;
rewrite "^([A-Za-z_]+)-([0-9]+)_([0-9]+).html$" index.php?n=list&n_id=$1&p=$2&pp=$3 last;
rewrite "^index-([a-z_]+)-([0-9]+)_([0-9a-z_]+)$" index.php?n=$1&id=$2&pp=$3 last;
rewrite "^content-([0-9]+)-([0-9]+).html$" index.php?n=content&n_id=$1&p=$2 last;
rewrite "^content-([0-9]+)-([0-9]+)_([0-9]+)$" index.php?n=content&n_id=$1&p=$2&page=$3 last;
rewrite "^user-([a-z_]+)-([0-9]+).html$" index.php?n=user_index&u=$1&id=$2 last;
rewrite "^user-([a-z_]+).html$" index.php?n=user_index&u=$1 last;
break;}
--
FROM 202.113.16.*