Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# BEGIN WordPress
<IfModule mod_rewrite.c>
#### Allow versioning for js and css files
RewriteEngine On
RewriteRule ^(.*)\.[\d]+\.(css)$ $1.$2 [L] # Strip out the version number
#### End Allow versioning for js and css files
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
@rob-st

This comment has been minimized.

Copy link

rob-st commented Oct 14, 2016

Um den Rewrite auch für JS Dateien geltend zu machen, muss diese Dateiendung noch ergänzt werden:
RewriteRule ^(.*)\.[\d]+\.(css|js)$ $1.$2 [L] # Strip out the version number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.