主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情! |
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作 |
https://www.hostloc.com/thread-667889-1-1.html
今天分享的一个活码
- <IfModule mod_rewrite.c&复制代码
|
各路大神的回复:
注册: 屌小,不看了
TIMI: 直接转换吧 # Warning: unknown at line 1: # # Warning: unknown at line 2: # Options +FollowSymlinks #禁止访问 View if ($request_uri ~* (.*)/?View/(.*)?.html$) { return 403; } #系统首页 rewrite ^//?home_/(.*)?$ index.php?s=/home/index/index/$1 last; rewrite ^//?home?$ index.php?s=/home/index/index last; #活码伪静态 # Warning: unsupported_flag at line 13: # RewriteRule ^/?news-(.*)$ index.php?s=/qrcode/index/query/id/$1 [QSA,PT,L] rewrite ^//?news-(.*)$ index.php?s=/qrcode/index/query/id/$1 last; #用户中心 rewrite ^//?ucenter/([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/index/uid/$1$2 last; rewrite ^//?ucenter_/(.*)?$ index.php?s=/ucenter/index/index/$1 last; rewrite ^//?ucenter$ index.php?s=/ucenter/index/index last; rewrite ^//?ucenter/following_([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/following/uid/$1$2 last; rewrite ^//?ucenter/following_/(.*)?$ index.php?s=/ucenter/index/following/$1 last; rewrite ^//?ucenter/following$ index.php?s=/ucenter/index/following last; rewrite ^//?ucenter/applist_([A-Za-z]+)/([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/applist/type/$1/uid/$2$3 last; rewrite ^//?ucenter/applist_([A-Za-z]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/applist/type/$1$2 last; rewrite ^//?ucenter/applist_([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/applist/uid/$1$2 last; rewrite ^//?ucenter/applist_/(.*)?$ index.php?s=/ucenter/index/applist/$1 last; rewrite ^//?ucenter/applist$ index.php?s=/ucenter/index/applist last; rewrite ^//?ucenter/fans_([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/fans/uid/$1$2 last; rewrite ^//?ucenter/fans_/(.*)?$ index.php?s=/ucenter/index/fans/$1 last; rewrite ^//?ucenter/fans$ index.php?s=/ucenter/index/fans last; rewrite ^//?ucenter/rank_([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/rank/uid/$1$2 last; rewrite ^//?ucenter/rank_/(.*)?$ index.php?s=/ucenter/index/rank/$1 last; rewrite ^//?ucenter/rank$ index.php?s=/ucenter/index/rank last; rewrite ^//?ucenter/rankwait_([0_9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/rankverifywait/uid/$1$2 last; rewrite ^//?ucenter/rankwait_/(.*)?$ index.php?s=/ucenter/index/rankverifywait/$1 last; rewrite ^//?ucenter/rankwait$ index.php?s=/ucenter/index/rankverifywait last; rewrite ^//?ucenter/rankfailure_([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/rankverifyfailure/uid/$1$2 last; rewrite ^//?ucenter/rankfailure_/(.*)?$ index.php?s=/ucenter/index/rankverifyfailure/$1 last; rewrite ^//?ucenter/rankfailure$ index.php?s=/ucenter/index/rankverifyfailure last; rewrite ^//?ucenter/rankverify_([0-9]+)(([/|.]+).*)?$ index.php?s=/ucenter/index/rankverify/uid/$1$2 last; rewrite ^//?ucenter/rankverify_/(.*)?$ index.php?s=/ucenter/index/rankverify/$1 last; rewrite ^//?ucenter/rankverify$ index.php?s=/ucenter/index/rankverify last; rewrite ^//?ucenter/conf_/(.*)?$ index.php?s=/ucenter/config/index/$1 last; rewrite ^//?ucenter/conf$ index.php?s=/ucenter/config/index last; rewrite ^//?ucenter/tag_/(.*)?$ index.php?s=/ucenter/config/tag/$1 last; rewrite ^//?ucenter/tag$ index.php?s=/ucenter/config/tag last; rewrite ^//?ucenter/avatar_/(.*)?$ index.php?s=/ucenter/config/avatar/$1 last; rewrite ^//?ucenter/avatar$ index.php?s=/ucenter/config/avatar last; rewrite ^//?ucenter/password_/(.*)?$ index.php?s=/ucenter/config/password/$1 last; rewrite ^//?ucenter/password$ index.php?s=/ucenter/config/password last; rewrite ^//?ucenter/score_/(.*)?$ index.php?s=/ucenter/config/score/$1 last; rewrite ^//?ucenter/score$ index.php?s=/ucenter/config/score last; rewrite ^//?ucenter/role_/(.*)?$ index.php?s=/ucenter/config/role/$1 last; rewrite ^//?ucenter/role$ index.php?s=/ucenter/config/role last; rewrite ^//?ucenter/other_/(.*)?$ index.php?s=/ucenter/config/other/$1 last; rewrite ^//?ucenter/other$ index.php?s=/ucenter/config/other last; rewrite ^//?ucenter/safepass_/(.*)?$ index.php?s=/ucenter/config/safepass/$1 last; rewrite ^//?ucenter/safepass$ index.php?s=/ucenter/config/safepass last; rewrite ^//?ucenter/mobile_/(.*)?$ index.php?s=/ucenter/config/mobile/$1 last; rewrite ^//?ucenter/mobile$ index.php?s=/ucenter/config/mobile last; rewrite ^//?ucenter/email_/(.*)?$ index.php?s=/ucenter/config/email/$1 last; rewrite ^//?ucenter/email$ index.php?s=/ucenter/config/email last; rewrite ^//?ucenter/my$ index.php?s=/ucenter/my/index last; rewrite ^//?ucenter/myapplist$ index.php?s=/ucenter/my/applist last; rewrite ^//?ucenter/myapplist_/(.*)?$ index.php?s=/ucenter/my/applist/$1 last; rewrite ^//?ucenter/session_/(.*)?$ index.php?s=/ucenter/message/session/$1 last; rewrite ^//?ucenter/session$ index.php?s=/ucenter/message/session last; rewrite ^//?ucenter/msg_([a-z]+)(([/|.]+).*)?$ index.php?s=/ucenter/message/message/tab/$1$2 last; rewrite ^//?ucenter/msg_/(.*)?$ index.php?s=/ucenter/message/message/$1 last; rewrite ^//?ucenter/msg$ index.php?s=/ucenter/message/message last; #注册登录 rewrite ^//?login_/(.*)?$ index.php?s=/home/member/login/$1 last; rewrite ^//?login$ index.php?s=/home/member/login last; rewrite ^//?register/step_([a-z_]+)(([/|.]+).*)?$ index.php?s=/home/member/step/step/$1$2 last; rewrite ^//?register/([a-z]+)/c_([a-zA-Z0-9]+)(([/|.]+).*)?$ index.php?s=/home/member/register/type/$1/code/$2$3 last; rewrite ^//?register/([a-z]+)(([/|.]+).*)?$ index.php?s=/home/member/register/type/$1$2 last; rewrite ^//?register_/(.*)?$ index.php?s=/home/member/register/$1 last; rewrite ^//?register$ index.php?s=/home/member/register last; #默认情况 # Warning: unsupported_condition at line 81: # RewriteCond %{REQUEST_FiLENAME} !-d # Warning: unsupported_condition at line 84: # RewriteCond %{REQUEST_URI} !^.*(.css|.js|.gif|.png|.jpg|.jpeg|.bmp)$ # Warning: unsupported_flag at line 86: # RewriteRule ^/?(.*)$ index.php?s=/$1 [QSA,PT,L] #api rewrite ^//?api_/(.*)?$ api/$1 last; # Warning: unknown at line 91: # 复制代码
h20: 网上有,阿帕奇转nginx一键转换
hasamol7468: 直接转的不行 测试过了
adminplus: 基本都行的 如果不行要找找具体问题,毕竟工具不是万能的
TIMI: 直接转的不行 难道是程序本身的问题?
hasamol7468: 好长的代码 又看到闪**了。。。
TIMI: 先转换 然后一段一段的添加 看看社那个规则有问题 二楼的2个斜杠试试删掉一个
这几篇文章你可能也喜欢:
本文由主机参考刊发,转载请注明:伪静态的问题 屌大的来帮忙 球球了 https://zhujicankao.com/15647.html
评论前必须登录!
注册