主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情! |
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作 |
文章目录
Nginx伪静态规则
# Announcements rewrite ^/announcements/([0-9]+)/[a-zA-Z0-9_-]+.html$ /announcements.php?id=$1 last; rewrite ^/announcements$ /announcements.php last; # Downloads rewrite ^/downloads/([0-9]+)/([^/]*)$ /downloads.php?action=displaycatcatid=$1 last; rewrite ^/downloads$ /downloads.php last; # Knowledgebase rewrite ^/knowledgebase/([0-9]+)/[a-zA-Z0-9_-]+.html$ /knowledgebase.php?action=displayarticleid=$1 last; rewrite ^/knowledgebase/([0-9]+)/([^/]*)$ /knowledgebase.php?action=displaycatcatid=$1 last; rewrite ^/knowledgebase$ /knowledgebase.php last;
Apache伪静态规则
RewriteEngine On # 公告伪静态 RewriteRule ^announcements/([0–9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ ./announcements.php [L,NC] # 下载伪静态 RewriteRule ^downloads/([0–9]+)/([^/]*)$ ./downloads.php?action=displaycatcatid=$1 [L,NC] RewriteRule ^downloads$ ./downloads.php [L,NC] # 知识库伪静态 RewriteRule ^knowledgebase/([0–9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticleid=$1 [L,NC] RewriteRule ^knowledgebase/([0–9]+)/([^/]*)$ ./knowledgebase.php?action=displaycatcatid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] # 防止目录暴露禁止TPL INC CFG文件被下载 Options -Indexes <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> <Files ~ “\.(tpl|inc|cfg)$”> order deny,allow deny from all </files>
若已安装宝塔面板,直接放到伪静态里面即可
这几篇文章你可能也喜欢:
- 莱卡云怎么样? 评测并分享徕卡云香港 CN2 GIA 2C2G5M
- LOCVPS,双12特惠,香港免备案VPS云服务器终身65折,香港葵湾机房,CN2+BGP/CN2网络,KVM虚拟架构,1核2G内存2Mbps带宽不限流量,29.25元/月
- 热网互联Hotiis,年底特惠活动,海外高质量免备案VPS云服务器5折,中国香港/美国/日本机房,1核1G内存15Mbps带宽,低至20元/月,默认赠送5G DDOS防御
- 腾讯云,双十一特价优惠活动,高性价比国内轻量云服务器年付低至48元起,2核4G内存8Mbps带宽轻量云年付70元,续费2.5折起,还有海量代金券免费领
- 腾讯云,双11活动最后一天,超便宜云服务器2核4G内存8Mbps带宽仅198元/3年,无新账号可按照本文附带教程1个身份证开8个新用户账号抢购,买到就是赚到,挖币都能回本
本文由主机参考刊发,转载请注明:WHMCS自学教程,Nginx伪静态规则,Apache伪静态规则,宝塔面板可直接使用,WHMCS Study https://zhujicankao.com/5771.html
评论前必须登录!
注册