【发布时间】:2015-07-30 15:32:18
【问题描述】:
所以我在网站的根文件夹中有一些图片,它们是使用<img src="" />从另一个网站链接的
在重新设计之后事情发生了变化,现在图像位于一个名为 imgs 的新文件夹中
所以我需要的是旧 url 以某种方式工作,但从另一个文件夹提供图像。
http://example.com/file.JPG should be served from http://example.com/imgs/file.JPG
我试过了,但是不行
RewriteRule ^/(.*)\.JPG$ /imgs/$1\.JPG [L,R]
【问题讨论】:
标签: apache .htaccess mod-rewrite