蚂蚁分类信息系统伪静态多城市版nginx规则自适应URL

蚂蚁分类信息系统伪静态多城市版nginx规则自适应URL,支持二级域名,包含信息、文章、商家、店铺、商城

if ( $http_user_agent ~ "(MIDP)|(WAP)|(UP.Browser)|(Smartphone)|(Obigo)|(Mobile)|(AU.Browser)|(wxd.Mms)|(WxdB.Browser)|(CLDC)|(UP.Link)|(KM.Browser)|(UCWEB)|(SEMC-Browser)|(Mini)|(Symbian)|(Palm)|(Nokia)|(Panasonic)|(MOT-)|(SonyEricsson)|(NEC-)|(Alcatel)|(Ericsson)|(BENQ)|(BenQ)|(Amoisonic)|(Amoi-)|(Capitel)|(PHILIPS)|(SAMSUNG)|(Lenovo)|(Mitsu)|(Motorola)|(SHARP)|(WAPPER)|(LG-)|(LG/)|(EG900)|(CECT)|(Compal)|(kejian)|(Bird)|(BIRD)|(G900/V1.0)|(Arima)|(CTL)|(TDG)|(Daxian)|(DAXIAN)|(DBTEL)|(Eastcom)|(EASTCOM)|(PANTECH)|(Dopod)|(Haier)|(HAIER)|(KONKA)|(KEJIAN)|(LENOVO)|(Soutec)|(SOUTEC)|(SAGEM)|(SEC-)|(SED-)|(EMOL-)|(INNO55)|(ZTE)|(iPhone)|(Android)|(Windows CE)|(Wget)|(Java)|(curl)|(Opera)" ) {rewrite ^/(.*[\/]?)city/$ /m/?mod=changecity&cityid=0 last;rewrite ^/(.*[\/]?)news.html$ /m/index.php?mod=news last; rewrite ^/(.*[\/]?)news-page-([0-9]+).html$ /m/index.php?mod=news&page=$2 last;rewrite ^/(.*[\/]?)news/([0-9]+).html$ /m/index.php?mod=news&id=$2 last;rewrite ^/(.*[\/]?)history.html$ /m/index.php?mod=history last;rewrite ^/(.*[\/]?)news-id-([0-9]+).html$ /m/index.php?mod=news&id=$2 last;rewrite ^/(.*[\/]?)news-catid-([0-9]+).html$ /m/index.php?mod=news&catid=$2 last;rewrite ^/(.*[\/]?)news-catid-([0-9]+)-page-([0-9]+).html$ /m/index.php?mod=news&catid=$2&page=$3 last;rewrite ^/(.*[\/]?)aboutus.html$ /m/index.php?mod=aboutus last;rewrite ^/(.*[\/]?)aboutus-id-([0-9]+).html$  /m/index.php?mod=aboutus&id=$2 last;rewrite ^/(.*[\/]?)announce.html$ /m/index.php?mod=announce last;rewrite ^/(.*[\/]?)announce-id-([0-9]+).html$ /m/index.php?mod=announce&id=$2 last;rewrite ^/(.*[\/]?)goods.html$ /m/index.php?mod=goods last;rewrite ^/(.*[\/]?)goods-id-([0-9]+).html$ /m/index.php?mod=goods&id=$2 last;rewrite ^/(.*[\/]?)goods-([^\/]+).html$ /m/index.php?mod=goods&Catid=$2 last;rewrite ^/(.*[\/]?)corporation.html$ /m/index.php?mod=corp last;rewrite ^/(.*[\/]?)corporation-([^\/]+)\.html$ /m/index.php?mod=corp&Catid=$2 last;rewrite ^/(.*[\/]?)store-([0-9]+)/$ /m/index.php?mod=store&id=$2 last;rewrite ^/(.*[\/]?)store-([0-9]+)\/([^\/]+).html$ /m/index.php?mod=store&id=$2&Uid=$3    last;rewrite ^/(.*[\/]?)store-([0-9]+)/document-id-([0-9]+).html$ /m/index.php?mod=store&id=$2&action=document&docuid=$3 last;rewrite ^/(.*[\/]?)store-([0-9]+)/document-typeid-([0-9]+).html$ /m/index.php?mod=store&id=$2&action=document&typeid=$3 last;rewrite ^/category/$ /m/index.php?mod=category last;rewrite ^/(.+)/$ /m/index.php?mod=category&Catid=$1 last;rewrite ^/(?!store|space|news)(.+[\/]?.+)/$ /m/index.php?mod=category&Catid=$1 last;rewrite ^/(.+[\/]?.+)/([0-9]+).html$ /m/index.php?mod=information&id=$2 last;rewrite ^/index.php(.*)$ /m/index.php$1 last;rewrite ^/index.html(.*)$ /m/index.php$1 last;
}rewrite ^/(.*[\/]?)city/$ /changecity.php last;
rewrite ^/(.*[\/]?)news.html$ /news.php?cityname=$1 last;
rewrite ^/(.*[\/]?)news/([0-9]+).html$ /news.php?cityname=$1&id=$2 last;
rewrite ^/(.*[\/]?)news-catid-([0-9]+).html$ /news.php?cityname=$1&catid=$2 last;
rewrite ^/(.*[\/]?)news-catid-([0-9]+)-page-([0-9]+).html$ /news.php?cityname=$1&catid=$2&page=$3 last;
rewrite ^/sitemap/$ /about.php?part=sitemap    last;
rewrite ^/sitemap.html$ /about.php?part=sitemap    last;
rewrite ^/aboutus.html$ /about.php?part=aboutus    last;
rewrite ^/aboutus-id-([0-9]+).html$ /about.php?part=aboutus&id=$1    last;
rewrite ^/announce.html$ /about.php?part=announce    last;
rewrite ^/announce-id-([0-9]+).html$ /about.php?part=announce&id=$1    last;
rewrite ^/faq.html$ /about.php?part=faq    last;
rewrite ^/faq-id-([0-9]+).html$ /about.php?part=faq&id=$1    last;
rewrite ^/friendlink.html$ /about.php?part=friendlink    last;
rewrite ^/(.*[\/]?)goods/$ /goods.php    last;
rewrite ^/(.*[\/]?)goods-id-([0-9]+).html$ /goods.php?id=$2    last;
rewrite ^/(.*[\/]?)goods-([^\/]+).html$ /goods.php?Catid=$2    last;
rewrite ^/(.*[\/]?)space/(.+)\/$ /space.php?user=$2    last;
rewrite ^/(.*[\/]?)store-([0-9]+)\/$ /store.php?uid=$2    last;
rewrite ^/(.*[\/]?)store-([0-9]+)\/([^\/]+).html$ /store.php?uid=$2&Uid=$3    last;
rewrite ^/(.*[\/]?)corporation.html$ /corporation.php    last;
rewrite ^/(.*[\/]?)corporation-([^\/]+)\.html$ /corporation.php?Catid=$2    last;
if (!-d $request_filename){rewrite ^/(?!store|space|news)(.+[\/]?.+)/$ /category.php?Catid=$1 last;
}
if (!-d $request_filename){rewrite "^/([a-z|A-Z|0-9]{2,})$" /index.php?cityname=$1 last;
}
rewrite ^/(.+[\/]?.+)/([0-9]+).html$ /information.php?id=$2 last;

蚂蚁分类信息系统伪静态多城市版nginx规则自适应URL相关推荐

  1. 蚂蚁分类信息系统伪静态规则设置教程

    蚂蚁分类信息系统伪静态规则可以通过系统->核心设置->SEO伪静态中进行设置. 蚂蚁分类信息系统伪静态对服务器环境有特殊要求,独立主机用户需要对 Web 服务器增加相应的 Rewrite ...

  2. 蚂蚁分类信息系统Nginx伪静态规则支持二级域名设置方法

    蚂蚁分类信息系统Nginx伪静态规则支持二级域名设置方法 nginx环境中蚂蚁分类信息系统支持二级域名访问实现方法 1.后台生成所有城市目录 2.nginx伪静态增加配置 if ( $host ~* ...

  3. 蚂蚁分类信息系统5.9SE多城市版去除域名限制

    MayiCMS蚂蚁分类信息系统是一 款基于php+mysql的出色的地方生活分类信息门户建站软件. 蚂蚁分类系统采用高效的缓存处理技术,拥有世界的用户体验,卓越的访问速度和负载能力.能让你在短的时间架 ...

  4. 蚂蚁分类信息系统PC手机网址自适应,网页自适应移动端及根据访问设备自动识别展示手机站或PC站

    蚂蚁分类信息系统PC手机网址自适应,网页自适应移动端及根据访问设备自动识别展示手机站或PC站 本实现方法仅适用于nginx环境,主要是使用 Nginx 内置 $http_user_agent 变量来区 ...

  5. 蚂蚁分类信息系统5.8多城市UTF8开源优化版

    蚂蚁分类信息系统5.8多城市UTF8开源优化版介绍 1.新增模版一套,首页带新闻资讯,信息展示更全面 2集成PC端微信扫码支付 3发布信息支持多图上传,可以调整位置,设置封面 4优化WAP端信息图片展 ...

  6. 蚂蚁分类信息系统 5.8 信息浏览量后台自定义设置

    mymps 蚂蚁分类信息是一款基于PHP+MySQL的建站系统,为在各种服务器上架设分类信息以及地方门户网站提供完美的解决方案. mymps5.8 下载 蚂蚁分类系统 5.8下载 蚂蚁分类系统下载 m ...

  7. 蚂蚁分类信息系统mymps对接阿里云短信接口

    蚂蚁分类信息系统(mymps)是基于PHP+Mysql开发的分类信息程序CMS,以负载能力强.安全性高.操作简单而著称,深受分类信息网站站长喜爱,为在WINDOW/LINUX服务器上架设分类信息网站提 ...

  8. 蚂蚁分类信息系统增加游客发布信息需要手机验证码选项

    蚂蚁分类信息系统5.8增加游客发布信息需要手机验证码选项 后台设置开启选项 PC端发布效果 WAP端发布效果 修改相关文件 1._config表增加一条记录 2 修改admin\include\con ...

  9. mymps蚂蚁分类信息系统5.8SE UTF8开源优化无BUG版新增功能介绍

    mymps 蚂蚁分类信息系统是一款基于php+mysql的建站系统,为在各种服务器上架设分类信息以及地方门户网站提供完美的解决方案 目前官方最新版本为5.8.近期安装了  mymps蚂蚁分类信息系统5 ...

  10. mymps蚂蚁分类信息系统数据库表结构

    表名 说明 my_about 关于我们栏目数据(网站简介,联系我们等) my_admin 后台管理员数据 my_admin_record_action 管理员操作记录 my_admin_record_ ...

最新文章

  1. Android 使用 setImageResource 清空图片
  2. C#编写窗体(Form)常用属性
  3. php 鼠标点击图片放大,鼠标移入放大图片预览效果实现
  4. as_hash ruby_Hash.merge(other_hash)方法与Ruby中的示例
  5. 手机配置网络代理服务器_两张图简说代理服务器和反向代理服务器
  6. 学linux做笔记本,linux学习之笔记本安装CentOS7
  7. how to add external library in qt under ubuntu
  8. 【CarMaker学习笔记】T型路口多车运行实验
  9. 计算机论文3000字文献,计算机学术论文3000字计算机学术毕业论文范文模板.pdf
  10. 还在纠结offer选择吗?也许你该看看这篇文章!
  11. 不同系统下的shell的不同_案例分析 | 不同安装角度下平板集热器阳台壁挂式太阳能热水系统性能分析...
  12. 树莓派pythongpio编程_基于树莓派的python GPIO编程-常用函数综合整理
  13. Android——打电话(选择指定手机卡)、发短信
  14. WeaveSocket框架-Unity太空大战游戏-通信协议-2
  15. 推荐 :数据分析思维和方法—用户画像分析
  16. 2122 分解质因数
  17. python在abaqus中的应用光盘文件下载_python语言在abaqus中的应用随书光盘.rar-讲义文档类资源...
  18. SpringCloud+SpringCloudAlibaba
  19. 金士顿固态硬盘不认盘修复_上海金士顿固态硬盘维修 上海台电固态硬盘不识别数据恢复中心...
  20. 2021-07-12测绘资质新标准和旧标准改革内容

热门文章

  1. 程序人生 - 杭州阶梯摇号是什么意思?
  2. scrapy框架携带cookie访问淘宝购物车功能的实现代码!
  3. 北京联通光猫WO-36(HG220GS-U)改为桥接模式
  4. 我裂了,换领导后,竟然每天都要写日报
  5. qcloud php开发,GitHub - QcloudApi/qcloudapi-sdk-php
  6. 国光师傅文件上传靶场练习
  7. NS-miracle安装
  8. js导出WORD设置分页
  9. java实现pdf导出
  10. 统计|如何建立单总体方差的置信区间