【发布时间】:2020-01-28 20:53:09
【问题描述】:
# Structure
- example.com/static
-- .htaccess
-- images
--- file.png
--- file_cache.png
-- photos
--- file.jpg
--- file_cache.jpg
我想重写这条规则 GET param from URI and return file.
例如:
http://example.com/static/images/file.png
(- 服务器将尝试通过链接返回文件)
但是!
当用户声明 GET 参数和值等于“type=cache”时。
然后通过链接
http://example.com/static/images/file.png?type=cache
服务器返回文件
http://example.com/static/images/file_cache.png
谢谢!
【问题讨论】: