阿里云服务器使用宝塔面板后Metinfo程序如何配置伪静态?

2020-04-18 22:25:06 31

阿里云服务器使用宝塔面板后Metinfo程序如何配置伪静态?

伪静态,301,和404对于互联网老兵而言都再熟悉不过了,不论是经验丰富的站长还是刚开始学习优化的新手,普通的企业网站在上线前必须把这几项都完成了,欧宝app软件开发否则可能对于你后期的网站推广优化有一定的弊端。
由于每款CMS内容程序的伪静态规则不同,因此在配置.htaccess规则的时候使用的伪静态规则也是不尽相同的,宝塔面板上面虽然预留了很多伪静态配置,可是对于有些不常见CMS程序来说还是没有的。比如米拓程序的伪静态就没有。那么如何实现呢?

首先登陆Metinfo后台,找到营销--SEO--伪静态--复制如下规则:

rewrite ^/index-([a-zA-Z0-9_^x00-xff]+).html$ /index.php?lang=$1&pseudo_jump=1;
rewrite ^/app/app/ueditor/([a-zA-Z0-9_^\x00-\xff]+).html$ /app/app/ueditor/$1.html last;
rewrite ^/wap/([a-zA-Z0-9_^\x00-\xff]+).html$ /wap/$1.html last;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/list-([a-zA-Z0-9_^x00-xff]+).html$ /$1/index.php?metid=$2&list=1&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/list-([a-zA-Z0-9_^x00-xff]+)-([0-9_]+).html$ /$1/index.php?metid=$2&list=1&page=$3&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/list-([a-zA-Z0-9_^x00-xff]+)-([a-zA-Z0-9_^x00-xff]+).html$ /$1/index.php?lang=$3&metid=$2&list=1&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/list-([a-zA-Z0-9_^x00-xff]+)-([0-9_]+)-([a-zA-Z0-9_^x00-xff]+).html$ /$1/index.php?lang=$4&metid=$2&list=1&page=$3&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/jobcv-([a-zA-Z0-9_^x00-xff]+)-([a-zA-Z0-9_^x00-xff]+).html$ /$1/cv.php?lang=$3&selectedjob=$2&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/product-list-([a-zA-Z0-9_^x00-xff]+).html$ /$1/product.php?lang=$2&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/img-list-([a-zA-Z0-9_^x00-xff]+).html$ /$1/img.php?lang=$2&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/([a-zA-Z0-9_^\x00-\xff]+)-([a-zA-Z0-9_^x00-xff]+).html$ /$1/index.php?lang=$3&metid=$2&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/([a-zA-Z0-9_^\x00-\xff]+).html$ /$1/index.php?metid=$2&pseudo_jump=1;
rewrite ^/([a-zA-Z0-9_^x00-xff]+)/([a-zA-Z0-9_^x00-xff]+).html$ /$1/index.php?lang=$3&metid=$2&pseudo_jump=1;
rewrite ^/tag/([\s\S]+)-([a-zA-Z0-9_^\x00-\xff]+)$ /search/search.php?class1=&class2=&class3=&searchtype=0&searchword=$1&lang=$2;
rewrite ^/tag/([\s\S]+)$ /search/search.php?class1=&class2=&class3=&searchtype=0&searchword=$1;


把这些规则放到宝塔对应的站点--设置--伪静态-插入进去然后重新保存一个模板即可。如下图:

欧宝app网站建设