服务器维护,服务器代维,安全设置,漏洞扫描,入侵检测服务
vim /var/www/html/168pc/bbs/.htaccess
# nginx rewrite rulerewrite ^(.*)/archiver/((fid|tid)-[w-]+.html)$ $1/archiver/index.php?$2 last;rewrite ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3 last;rewrite ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3 last;rewrite ^(.*)/profile-(username|uid)-(.+).html$ $1/viewpro.php?$2=$3 last;rewrite ^(.*)/space-(username|uid)-(.+).html$ $1/space.php?$2=$3 last;rewrite ^(.*)/tag-(.+).html$ $1/tag.php?name=$2 last;# end nginx rewrite rule
vim /etc/nginx/nginx.conf
/etc/init.d/nginx reload
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|手机版|Archiver|运维之家
GMT+8, 2025-5-1 03:54 , Processed in 0.021314 second(s), 14 queries .
Powered by Dirtysea
© 2008-2020 Dirtysea.com.