haku Posted November 28, 2008 Share Posted November 28, 2008 I've been trying to write a regex expression that matches any image in the domain: static.exa-mple.com (the hyphen is deliberate). The images may be at the root or in subfolders. I have this: <FilesMatch "^http://static(.*).(ico|jpg|jpeg|png|gif)$"> Header set Expires "Sun, 30 Nov 2008 20:00:00 GMT" </FilesMatch> And it doesn't work. I've tried every variation I can think of with no success. Can anyone give me a hand? Thanks. Quote Link to comment Share on other sites More sharing options...
corbin Posted November 29, 2008 Share Posted November 29, 2008 http://httpd.apache.org/docs/2.2/mod/core.html#filesmatch It's just local files. Unfortunately I can't remember which tag lets you use the Request_URI environmental variable. IfSetEnv or something. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.