张月如
张月如
3477 3 0

我的分类不能访问

http://www.ostm.net/n-10

我的是nginx

伪静态规则

rewrite ^/n-([0-9]+)(-([0-9]))?$ /nodepage.php?cid=$1&page=$3 last;
rewrite ^/t-([0-9]+)(-([0-9]
))?$ /topicpage.php?tid=$1&page=$3 last;
rewrite ^/notifications$ /notifications.php last;
rewrite ^/favorites$ /favorites.php last;
rewrite ^/qqlogin$ /qqlogin.php last;
rewrite ^/qqcallback$ /qqcallback.php last;
rewrite ^/qqsetname$ /qqsetname.php last;
rewrite ^/feed$ /feed.php last;
rewrite ^/robots$ /robots.php last;
rewrite ^/forgot$ /forgot.php last;
rewrite ^/sitemap-([0-9]+)$ /sitemap.php?id=$1 last;
rewrite ^/upload-(650|590)$ /upload.php?mw=$1 last;
rewrite ^/viewat-(desktop|mobile)$ /viewat.php?via=$1 last;
rewrite ^/goto-t-([0-9]+)$ /gototopic.php?tid=$1 last;
rewrite ^/member/(.+)$ /member.php?mid=$1 last;
rewrite ^/newpost/([0-9]+)$ /newpost.php?cid=$1 last;
rewrite ^/admin-edit-post-([0-9]+)$ /admin-edit-post.php?tid=$1 last;
rewrite ^/admin-edit-comment-([0-9]+)$ /admin-edit-comment.php?rid=$1 last;
rewrite ^/admin-setuser-([0-9]+)$ /admin-setuser.php?mid=$1 last;
rewrite ^/admin-node(-([0-9]))?$ /admin-node.php?nid=$2 last;
rewrite ^/admin-setting$ /admin-setting.php last;
rewrite ^/admin-user-([a-z]+)(-([0-9]
))?$ /admin-user.php?act=$1&mid=$3 last;

请老大看看

0

See Also

Nearby


Discussion (3)

张月如
张月如 2013-09-06 03:24

我自己找到问题了

是这句话 有问题 $meta_des = $c_obj['name'].' - '.htmlspecialchars(mb_substr($c_obj['about'], 0, 150, 'utf-8')).' - page '.$page;

mb_substr 只有在(PHP 4 >= 4.0.6, PHP 5) 中有效

我的php版本是
www.ostm.net]# php -v
PHP 5.3.3 (cli) (built: Jul 12 2013 20:35:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

所以不能用

只能自己php扩展了

www.ostm.net]# yum search mbstring
www.ostm.net]# yum install php-mbstring.x86_64
www.ostm.net]# service php-fpm restart
就ok了

0
paneer
paneer 2013-09-06 08:07

wo@ &#¥##**&……@

0
获獎进入le
获獎进入le 2013-10-13 13:56

@张月如 楼主在否

0
Login Topics