懒怂站群程序的伪静态编写

目前懒怂站群在Nginx下应使用的伪静态为:

rewrite ^/(.*)\.xml$ /sitemap.php last;
rewrite ^/(index)\.(html|php)$ /$1.php last;
if (!-e $request_filename) {
  rewrite ^/(.*)/$ /list.php last;
  rewrite ^/(.*)\.(htm|html|shtml|asp|jsp|php)$ /show.php last;
}
location ~* \.txt$ {
  deny all;
}

上述代码说明:

任意后缀为xml的页面,调用sitemap.php,用于生成网站地图;

当首页为index.html是也调用index.php;

当页面后缀后缀为/时,视为列表页,调用list.html;

当页面后缀为htm、html、shtml、asp、jsp、php时,视为内页,调用show.html;

懒怂站群程序的伪静态编写-第1张图片

本站所有内容仅限用于学习和研究目的,程序仅供本地断网测试,转载请说明出处!
站群SEO » 懒怂站群程序的伪静态编写

发表评论

欢迎 访客 发表评论

聚合全网站群程序及推送工具!

联系站长 联系客服