Re: Question about rewrite directive

2016-01-28 Thread Rainer Duffner
> Am 29.01.2016 um 00:06 schrieb Lukas : > >> Lukas [2016-01-28 22:04]: >> >>> rai...@ultra-secure.de [2016-01-28 15:12]: >>> >>> a customer has this in his .htaccess file (among other things): >>> >>> RewriteCond %{REQUEST_FILENAME} !-f >>> RewriteCond %{REQUEST_FILENAME} !-d >>> RewriteRul

Re: Question about rewrite directive

2016-01-28 Thread Lukas
> Lukas [2016-01-28 22:04]: > > > rai...@ultra-secure.de [2016-01-28 15:12]: > > > > a customer has this in his .htaccess file (among other things): > > > > RewriteCond %{REQUEST_FILENAME} !-f > > RewriteCond %{REQUEST_FILENAME} !-d > > RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.

Re: Question about rewrite directive

2016-01-28 Thread Francis Daly
On Thu, Jan 28, 2016 at 03:12:16PM +0100, rai...@ultra-secure.de wrote: Hi there, > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L] > location ~* ^(.+)\.(\d+)\.(js|css|png|jpg|gif|gzip)$ { >

Re: Question about rewrite directive

2016-01-28 Thread Lukas
> rai...@ultra-secure.de [2016-01-28 15:12]: > > Hi, > > > a customer has this in his .htaccess file (among other things): > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L] > > This is to enable versio

Question about rewrite directive

2016-01-28 Thread rainer
Hi, a customer has this in his .htaccess file (among other things): RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L] This is to enable versioning of various files, so you can have long "Expires" on them