服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess 重写 mod rewrite nginx
  3. 将.Htaccess重写规则转换为Nginx
Intereting Posts
phpMyAdmin服务器描述,而不是主机名 SMTP服务器(IIS)正在运行,但无法用telnet进行testing Gentoo服务器时间问题,不能手动设置时间,NTPD不会正确的,太大的时间差 如何login到VisualSVN服务器(启用Single Sign-On)下的其他用户下,而不是当前login到Windows机器? 云存储作为文件共享见证? Powershell – select对象在整个脚本中保持相同的列 SQL Server完全备份function Postgresql的init.d脚本不能正常工作 为多个用户configurationTeam Foundation Server 2010 如何301一块一块地redirect? OpenBSD磁盘设备的前缀 路由器统计信息 – InPercentUtil和OutPercentUtilvalidation Powershell远程删除PKI证书 隧道cassandra通过SSH给我一个连接closures错误 如何设置每个用户的resolv.conf

将.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