开发者

Problem with RewriteCond replace

I'm havian a problem with RewriteCond in Apache. I have URL myurl.com/cache/100x100/filename.jpg and I need to check if the file exists. The problem is that for me is not important this exact path, but different one. I need to check if the file /images/100x100/filename.jpg exists.开发者_如何学Python Is it possible? Right now I have:

RewriteCond %{REQUEST_URI} ^/cache/([0-9x]*)/(.*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f

How can I change this to check different file? Is there anything like replace?


In that case, you probably want something like RewriteCond %{DOCUMENT_ROOT}/images/%1/%2 !-f

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜