<返回

第一节:搭建“短链接”前的宝塔“伪静态”代码保存...

查看简介 >>
短链接网站建设教程

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;
}

课程可以看的时候,聊天功能会自动加载!
笔记