Redirect internal to path, if resource doesn't exists
问题 i am trying to redirect internally to another location, so the user won't see the "script" location / uri, if an image does not exists: RewriteCond %{REQUEST_URI} ^/resources/img/tires [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^resources/img/tires/(.*)$ reifen/imagematch/$1 [L] For example if i request an image: http://domain.tld/resources/img/tires/manufacturer/image.jpg -> Image exists, directly serve the image. And if i request: http://domain.tld/resources/img/tires