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. Link to comment https://forums.phpfreaks.com/topic/134682-regex-help/ 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. Link to comment https://forums.phpfreaks.com/topic/134682-regex-help/#findComment-701521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.