搜索功能在哪里呢Nginx规则大家成功了吗
搜索功能在哪里呢Nginx规则大家成功了吗
By remenbo
at 2015-03-13
0人收藏 • 1674人看过
# nginx configuration error_page 404 /404.php; rewrite ^([^\.]*)/dashboard$ $1/dashboard.php; rewrite ^([^\.]*)/favorites(/page/([0-9]*))?$ $1/favorites.php?page=$3 last; rewrite ^([^\.]*)/json/(get_tags|tag_autocomplete|check_username)$ $1/json.php?action=$2 last; rewrite ^([^\.]*)/login$ $1/login.php; rewrite ^([^\.]*)/manage$ $1/manage.php; rewrite ^([^\.]*)/new$ $1/new.php; rewrite ^([^\.]*)/notifications$ $1/notifications.php; rewrite ^([^\.]*)/page/([0-9]+)$ $1/index.php?page=$2 last; rewrite ^([^\.]*)/register$ $1/register.php; rewrite ^([^\.]*)/reply$ $1/reply.php; rewrite ^([^\.]*)/robots.txt$ $1/robots.php; rewrite ^([^\.]*)/settings$ $1/settings.php; rewrite ^([^\.]*)/sitemap-(topics|pages|tags|users|index)(-([0-9]+))?.xml$ $1/sitemap.php?action=$2&page=$4 last; rewrite ^([^\.]*)/t/([0-9]+)(-([0-9]*))?$ $1/topic.php?id=$2&page=$4 last; rewrite ^([^\.]*)/tag/(.*?)(/page/([0-9]*))?$ $1/tag.php?name=$2&page=$4 last; rewrite ^([^\.]*)/tags/following(/page/([0-9]*))?$ $1/favorite_tags.php?page=$3 last; rewrite ^([^\.]*)/u/(.*?)$ $1/user.php?username=$2 last; rewrite ^([^\.]*)/users/following(/page/([0-9]*))?$ $1/favorite_users.php?page=$3 last; rewrite ^([^\.]*)/upload_controller$ $1/upload_controller.php;
这段是nginx 上的重写规则
请问社区的搜索功能是怎么解决的?
- 登录后方可回帖
3 个回复 | 最后更新于 2015-03-18
回复#1 @lincanbin :非常期待啊 要是有个搜索就好了 先来个简单的
回复#2 @remenbo :有打算