【发布时间】:2014-01-18 16:20:05
【问题描述】:
我想重定向所有名称以 ("-554-380") 结尾的图片:
子域调用:http://static.domain.de
http://domain.de/../..-554-380 -- 重定向 --> http://static.domain.de/images/..-554-380
我的根 .htaccess 文件如下所示:
RewriteCond %{HTTP_COOKIE} HTTP_IS_HIDPI
RewriteCond %{DOCUMENT_ROOT}/$1-554x380.$2 -f
RewriteRule ^(static/images.+)-277x190\.(jpe?g|png)$ $1-554x380.$2 [NC,L]
感谢您的帮助
奥格尼
【问题讨论】:
标签: .htaccess redirect subdomain root