扫码访问手机版
0 人在学
扫码访问手机版
关注
57592人气|4粉丝
|
详情
章节
聊天
问答
笔记
更多
安装“短链接”插件前的宝塔“伪静态”代码:
rewrite ^([^\.]*)/index\.html$ $1/plugin.php?id=tom_tcpc&site=1&mod=index last;
rewrite ^([^\.]*)/site-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=index last;
rewrite ^([^\.]*)/fenlei/list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=list&model_id=$3&type_id=$4&page=$5 last;
rewrite ^([^\.]*)/fenlei/info-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=info&xxid=$3 last;
rewrite ^([^\.]*)/fenlei/home-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=home&user_id=$3&page=$4 last;
rewrite ^([^\.]*)/fenlei/about-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=about&about_id=$3 last;
rewrite ^([^\.]*)/toutiao/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=toutiao&cate_id=$3&page=$4 last;
rewrite ^([^\.]*)/toutiao/info-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=toutiaoinfo&aid=$3 last;
rewrite ^([^\.]*)/toutiao/zuozhe-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=toutiaozuozhe&zuozhe_id=$3&type=$4&page=$5 last;
rewrite ^([^\.]*)/shop/shop-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=shop last;
rewrite ^([^\.]*)/shop/list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=shoplist&cate_id=$3&cate_child_id=$4&page=$5 last;
rewrite ^([^\.]*)/shop/info-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=tom_tcpc&site=$2&mod=shopinfo&dpid=$3 last;
if (!-e $request_filename) {
return 404;
}
rewrite ^([^\.]*)/s/([0-9a-zA-Z]+)$ $1/plugin.php?id=shortlink&aid=$2 last;
if (!-e $request_filename) {
return 404;
}
rewrite ^([^\.]*)/s/([0-9a-zA-Z]+)$ $1/plugin.php?id=shortlink&aid=$2 last;
if (!-e $request_filename) {
return 404;
}
rewrite ^([^\.]*)/video\.html$ $1/plugin.php?id=it618_video:index&$2 last;
rewrite ^([^\.]*)/video_list-([0-9]+)\.html$ $1/plugin.php?id=it618_video:list&class1=$2&$3 last;
rewrite ^([^\.]*)/video_list-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=it618_video:list&class1=$2&class2=$3&$4 last;
rewrite ^([^\.]*)/video_list-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=it618_video:list&class1=$2&class2=$3&$4 last;
rewrite ^([^\.]*)/video_list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=it618_video:list&class1=$2&class2=$3&price=$4&order=$5&page=$6&$7 last;
rewrite ^([^\.]*)/video_search\.html$ $1/plugin.php?id=it618_video:search&$2 last;
rewrite ^([^\.]*)/video_search-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=it618_video:search&class1=$2&class2=$3&price=$4&order=$5&page=$6&$7 last;
rewrite ^([^\.]*)/video_gwc\.html$ $1/plugin.php?id=it618_video:gwc&$2 last;
rewrite ^([^\.]*)/course-([0-9]+)\.html$ $1/plugin.php?id=it618_video:product&pid=$2&$3 last;
rewrite ^([^\.]*)/lesson-([0-9]+)\.html$ $1/plugin.php?id=it618_video:lesson&lid=$2&$3 last;
rewrite ^([^\.]*)/lecturer-([0-9]+)\.html$ $1/plugin.php?id=it618_video:lecturer&lid=$2&$3 last;
rewrite ^([^\.]*)/video_sc\.html$ $1/plugin.php?id=it618_video:sc&$2 last;
rewrite ^([^\.]*)/video_wap\.html$ $1/plugin.php?id=it618_video:wap&$2 last;
rewrite ^([^\.]*)/video_wap-(.+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=it618_video:wap&pagetype=$2&cid1=$3&cid2=$4&$5 last;
rewrite ^([^\.]*)/video_wap-(.+)-([0-9]+)\.html$ $1/plugin.php?id=it618_video:wap&pagetype=$2&cid=$3&$4 last;
rewrite ^([^\.]*)/video_wap-(.+)\.html$ $1/plugin.php?id=it618_video:wap&pagetype=$2&$3 last;
rewrite ^([^\.]*)/t/(\w+)$ $1/plugin.php?id=shorturl&guid=$2 last;
rewrite ^([^\.]*)/s/([0-9a-zA-Z]+)$ $1/plugin.php?id=shortlink&aid=$2 last;
if (!-e $request_filename) {
return 404;
}
1.1 第一节:搭建“短链接”前的宝塔“伪静态”代码保存
免 00:001.2 第二节:安装短链接后技术人员整理宝塔”伪静态“(重要)文件代码
免 00:002.1 第一节:自定义短链接“设置”操作
免 00:002.2 第二节:自定义短链接“管理”操作
免 00:002.3 第三节:自定义短链接“伪静态”代码集合
免 00:003.1 第一节:短链接网址“设置”教程
免 00:003.2 第二节:短链接网址“管理”教程
免 00:003.3 第三节:短链接网址“伪静态”代码文件集合
免 00:00