wordpress - Removing script and styles version query string with .htaccess -


how change this: example.com/css/style.css?ver=3.5.3 examle.com/css/settings.css?ver=4.6.9

in this: example.com/css/style.css example.com/css/settings.css

i have code on .htaccess file:

<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+)\.(.+)\.(js|css)$ $1.$3 [l] </ifmodule> 

this code not functioning. suggestions appreciated.

you can try in .htaccess in document root if want way. let me know how works you.

<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{query_string} ^ver=(.+) rewriterule ^css/(style|settings)(\.css)$ /css/$1$2? [l] </ifmodule> 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -