PHP

How To Remove Version Number In File Paths in Magento 2

PHP

How To Remove Version Number In File Paths in Magento 2

Some time we needs to remove version number in file paths in Magento 2 because these files’ URLs contain the deployed version due to which 404 error occurs. 

Please follow below steps :

  1. Login to admin panel
  2. Go to Stores > Configuration
  3. Under Advanced, select Developer
  4. Expand Static Files Settings
  5. Set “No” to Sign Static Files

And runs below comands :

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean

That’s it!