升级Carbon Forum 3.6.5两个问题
升级Carbon Forum 3.6.5两个问题
- 登录后方可回帖
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了。
回复#2 @lincanbin :
之前我就在群里提到这个问题了 您说是我系统问题 O(∩_∩)O哈哈~
回复#3 @鬼魅 :
他这个是Nginx rewrite的问题,你也是nginx吗?
回复#4 @lincanbin :
是啊 现在都是用NGINX啊
回复#5 @鬼魅 :
他问题描述比较清楚,我才能远程定位问题。 我印象中你就是反复地说你出问题了,然后又不给具体描述。
回复#6 @lincanbin :
好吧 怪我没说清楚 炯