升级Carbon Forum 3.6.5两个问题
By
itopidea
at 2015-09-16 • 0人收藏 • 2383人看过
1,tags 话题广场不能翻页
2,具体话题下的文章列表页不能翻页
3,上传话题图标不显示。上传目录已经有了。
7 个回复 | 最后更新于 2015-09-16
解决了,是以前帮我写第一版Nginx rewrite的朋友埋的雷。
# nginx configuration error_page 404 /404.php; rewrite ^/dashboard$ /dashboard.php last; rewrite ^/favorites(/page/([0-9]+))?$ /favorites.php?page=$2 last; rewrite ^/forgot$ /forgot.php last; rewrite ^/goto/([0-9]+)-([0-9]+)$ /goto.php?topic_id=$1&post_id=$2 last; rewrite ^/json/([0-9a-z_-]+)$ /json.php?action=$1 last; rewrite ^/login$ /login.php last; rewrite ^/manage$ /manage.php last; rewrite ^/new$ /new.php last; rewrite ^/notifications$ /notifications.php last; rewrite ^/oauth-([0-9]+)$ /oauth.php?app_id=$1 last; rewrite ^/page/([0-9]+)$ /index.php?page=$1 last; rewrite ^/register$ /register.php last; rewrite ^/reply$ /reply.php last; rewrite ^/reset_password/(.*?)$ /reset_password.php?access_token=$1 last; rewrite ^/robots.txt$ /robots.php last; rewrite ^/search.xml$ /open_search.php last; rewrite ^/search/(.*?)(/page/([0-9]+))?$ /search.php?keyword=$1&page=$3 last; rewrite ^/settings$ /settings.php last; rewrite ^/sitemap-(topics|pages|tags|users|index)(-([0-9]+))?.xml$ /sitemap.php?action=$1&page=$3 last; rewrite ^/statistics$ /statistics.php last; rewrite ^/t/([0-9]+)(-([0-9]+))?$ /topic.php?id=$1&page=$3 last; rewrite ^/tag/(.*?)(/page/([0-9]+))?$ /tag.php?name=$1&page=$3 last; rewrite ^/tags/following(/page/([0-9]+))?$ /favorite_tags.php?page=$2 last; rewrite ^/tags(/page/([0-9]+))?$ /tags.php?page=$2 last; rewrite ^/u/(.*?)$ /user.php?username=$1 last; rewrite ^/users/following(/page/([0-9]+))?$ /favorite_users.php?page=$2 last; rewrite ^/upload_controller$ /upload_controller.php last; #QSA is automatic in nginx. rewrite ^/view-(desktop|mobile)$ /view.php?view=$1 last;
也合并到release了。
登录后方可回帖
是Nginx这个环境的rewrite的问题,等下我再看看。
建议使用Apache或者IIS 7+,等下我看看是什么原因,正则表达式应该是没错的。