Having trouble rewriting the name of a flash file:
/flash/shell.1257347618.swf (the numbers are a changing timestamp, the idea is to bypass browser caching).
My .htaccess looks like this:
#Use mod.rewrite
RewriteEngine On
#Cache files which are autoversioned
ExpiresActive On
<FilesMatch "\.(swf)$">
ExpiresDefault "access plus 10 years"
</FilesMatch>
#Remove autoversion timestamp
RewriteRule ^(swf)/(.+)\.([0-9]+)\.(swf)$ $1/$2.$4 [L]
This was passed to me from a third party and it's not matching properly and I'm just no good at regex. Can anyone out there help me out?
The URL I'm testing with is similar to:
http://dev.somedomain.domain.com/flash/shell.1257347618.swf
And I've installed the .htaccess file to the flash directory.