服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 重写 nginx
  3. Nginx重写 – 删除URL结尾的子string
Intereting Posts
如何清除eAccelerator中的caching? Monit检测错误,但不重新启动星号 自动loginAzure VM Exchange 2010 – Exchange 2016共存和迁移 最简单的防火墙不起作用 如何公开访问RabbitMq 慢“ifconfig lo” 更改system-auth和password-auth后无法login SVN服务器占用大量空间 我怎样才能把一个工作的SPF,并把它变成一个SenderID? 我可以使用Apache作为正向代理cachingHTTPSstream量吗? 将所有http和https域名stream量重写为基于https的url的问题 将.net 2.0从.net 2.0迁移到4.0后缺lessloginvalidation nginx中的等效重写规则是什么? Exchange不保留“收件人:”字段

Nginx重写 – 删除URL结尾的子string

我有一个错误的插件,最终生成/ mobile的URL。 我正在修复这个插件,但同时我想写一个Nginx的重写规则来redirect,如下所示:

http://www.domain.com/article-slug/mobile

至

http://www.domain.com/article-slug/

  • Nginx的尾部斜杠redirect问题
  • Apache mod_rewrite把@ 2x的图像请求uri
  • Squid3 URLrewrite – 无法configuration
  • 添加一个URL后缀path(移动AMP),而不会在nginx中导致redirect循环
  • 删除.html扩展后添加尾部斜杠

有人可以帮我想出重写规则吗? 我研究过,但找不到对我有用的东西。 谢谢你的时间。

  • 避免双重redirectNGINX
  • Nginx重写/ product_category / WordPress
  • HTTP / 1.1 301从IIS永久移动两分钟
  • 在IIS 8.5 HTTPS到HTTPS中的URL重写在网关eroor中结束
  • Nginx重写下载php文件而不是执行

你的重写不会执行redirect,但会做更类似于内部的转发。 假设你想要一个301发送,那么你会这样做:

 rewrite ^(.*/)mobile$ $1 permanent; 
  • 子网域HTTP在networking外不可用
  • 如何更改nginx收到的redirect的端口?
  • IIS删除服务器信息头
  • IIS WordPress站点上的替代端口和重写规则
  • Nginx重写的URL无法redirect
  • haproxy重写规则reqirep日志
  • IIS https https
  • redirect到我的Laravel项目文件夹
  • nginx – 301redirect/子文件夹1 /一些友好的url-12345到/子文件夹2 /一些友好的url
  • Nginx重写/购物/任何东西/购物

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy