服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess 重写 mod rewrite nginx
  3. 将.Htaccess重写规则转换为Nginx
Intereting Posts
如何使用KMS密钥以分阶段方式设置Windows 7计算机? IPTables重新路由2次 SSH跳转主机并移动到特定的目录 ssh命令不能在juniper路由器上工作 在线build模工具服务器devise/体系结构 如何禁用非安全的外部链接在IE6中的非安全警告? Windows Server 2008 R2软件Raid-5缓慢的networking apparmor:多个应用程序相同的configuration文件 我如何自动更新Debian Squeeze? 隐藏Nginx反向代理redirect中的端口 需要 – 戴尔服务器快速详尽的内存testing工具 如何testing新的名称服务器,使其生活 远程更改引导顺序 OpenLDAP客户端configuration。 可以search但不能login? 我如何设置exim4提交电子邮件到我的cyrus(sasl)并将其副本转发给gmail?

将.Htaccess重写规则转换为Nginx

我有以下的Apache重写规则,我试图转换为与Nginx的工作。

RewriteRule ^(.*)\/(.*)-(\d{4})(?:-(.*))?$ album.php?artist=$1&album=$2&releaseyear=$3&extra=$4 

我希望它只是

 location / { rewrite "^/(.*)\/(.*)-(\d{4})(?:-(.*))?$" /album.php?artist=$1&album=$2&releaseyear=$3&extra=$4; } 

虽然这不起作用,但是我的重写规则的nginx版本有没有明确的问题?

  • CentOS – Apache HTTPS不能读取htaccess
  • 使用htaccess将IPredirect到域名
  • 需要授权! – 401
  • 将NGINX转换成Apache重写规则
  • 使用mod_rewriteredirect.htaccess的规则

  • Ganglia私人页面
  • 使用Apache mod_rewrite将主机重写到子文件夹,但redirect而不是重写
  • .htaccess只能redirect到首页?
  • 无法获得包含的CSS和JS文件被压缩
  • Nginx,将所有resquestredirect到子文件夹中的单个index.php文件
  • 在上菜之前先使用varnish检查html静态
  • 如何在文件和子目录中启用Apache DIGEST Authentivation
  • Apache:由于可能的configuration错误,请求超出了10个内部redirect的限制 – WooCommerce
  • 阻止假的谷歌机器人
  • 如果匹配.htacces中的特定正则expression式,将页面redirect到410
  • Nginx htpasswd成功login后获得403
  • Apache对iis重写规则
  • 使用虚拟主机configuration通过httpd php应用程序pipe理IP访问控制
  • 打开deflate时,apache httpd mod_expires不起作用
  • 通配符子域redirect到文件夹而不更改url

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