The .htaccess version of this rewrite rule contains a check that the requested file does not exist before rewriting (the !-f part in RewriteCond %{REQUEST_FILENAME} !-f).
This check is needed to avoid rewriting if the file exists on the server. Otherwise it will return 404, example below.
jquery-1.11.3.js => jquery-1.11.js
This can be solved by using a condition of the rewiterule, full example below:
The .htaccess version of this rewrite rule contains a check that the requested file does not exist before rewriting (the !-f part in RewriteCond %{REQUEST_FILENAME} !-f).
This check is needed to avoid rewriting if the file exists on the server. Otherwise it will return 404, example below. jquery-1.11.3.js => jquery-1.11.js
This can be solved by using a condition of the rewiterule, full example below: