.htaccess - 文件名中包含图像计数的多个图像文件的 HTAccess 速记重定向?
问题描述
我试图找到一种速记方法来从旧域中捕获许多图像点击:
http://www.old-domain.com/images/real-estate-nn.jpg to
http://www.new-domain.com/plot/images/real-estate-nn.jpg
nn = 01 到 29
RewriteCond %{REQUEST_URI} ^real-estate-([0-9]+)$ [NC]
RewriteRule ^(.*)$ http://www.new-domain.com/plot/images/real-estate-$1.jpg [R=301,NE,NC,L]
我究竟做错了什么?
谢谢你。
解决方案
推荐阅读
- javascript - 如何找到 moment() 构造函数引发弃用错误
- codenameone - CN1 如何处理home指示灯(iPhone X等)
- go - 如何检查文件名太长错误
- wpf - WPF ComboBox 删除高亮效果而不覆盖整个样式
- sql-server - SonarQube 7.2.1 - 连接到 SQL Server(多个实例)
- python-2.7 - Tkinter 中 st.mainloop 中的意外令牌
- grafana - 如何从 influxdb/grafana 中的两个查询中计算值
- ruby - 回调后 AASM 中的收益项
- javascript - Promise.all 不等待新的 Promise 解决
- docker - 在 Docker 内部运行时,GDBServer 未启动或侦听端口