Home > Backend Development > PHP Tutorial > 关于图片引用URLREWRITE的问题。

关于图片引用URLREWRITE的问题。

WBOY
Release: 2016-06-23 13:50:40
Original
1123 people have browsed it

问个基础问题   假如我目录下有logo.gif了  他还会重写到 引用 baidu的logo上去

我想要 假如目录下没有logo.gif 则 引用百度logo  如果有 则引用本地文件   可以在这里用规则实现么?


回复讨论(解决方案)

写规则应该做不到判断是否存在logo.gif

写规则应该做不到判断是否存在logo.gif



已经问到了 

RewriteCond %{REQUEST_FILENAME} !-f   加上这句就好了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template