|
不好意思,之前的规则代码会导致进不了后台,现在修改为以下,可以顺利进入后台,欢迎各位测试!
location / {
rewrite "^([^\.]*)/([a-zA-Z_]{1,})-([a-zA-Z_]{1,}).html$" $1/index.php?_m=$2&_a=$3;
rewrite "^([^\.]*)/([a-zA-Z_]{1,})-([a-zA-Z_]{1,})-([a-zA-Z_]{1,})-([0-9]{1,}).html$" $1/index.php?_m=$2&_a=$3&$4=$5;
rewrite "^([^\.]*)/([a-zA-Z_]{1,})-([a-zA-Z_]{1,})-([a-zA-Z_]{1,})-([0-9]{1,})-([a-zA-Z_]{1,})-([0-9]{1,}).html$" $1/index.php?_m=$2&_a=$3&$4=$5&$6=$7;
rewrite "^([^\.]*)/admin/([a-zA-Z_]{1,})-([a-zA-Z_]{1,})\.html$" $1/admin/index\.php\?_m=$2&_a=$3;
rewrite "^([^\.]*)/admin/([a-zA-Z_]{1,})-([a-zA-Z_]{1,})-([a-zA-Z_]{1,})-([0-9]{1,})\.html$" $1/admin/index\.php\?_m=$2&_a=$3&$4=$5;
} |
|