one magento developer

my experiences about magento

Magento 2 remove the version number from url

It’s a good Magento feature that sometimes disturbed Magento developers. If you get a 404 error or cache clean does not work, etc.

I want to show you all way that we can remove the version number from Magento URL.

remove Magento version number by PHPMyAdmin

open the phpmyadmin and select you Magento database.

find core_config_data table.

find path with dev/static/sign value. you can use PHPMyAdmin search. after finding set 0 to value. if you could not find it you can insert a new record by below SQL command

insert into core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0); 

remove Magento version number by Magento admin

For this solution, you need to login into the Magento admin panel. I assume that you know how you can do that. after login, you should follow this path

Stores > Configuration > Advanced > Developer > Sign Static Files

If you could not find the developer tab, it’s because you are in production mode. you can change get you mode by this command

go to magento root by ssh

php bin/magento deploy:mode:show

Also, you can change it to developer mode by

php bin/magento deploy:mode:set developer

Now, you can follow the path and change the version to no. after that. You need to clean the cache. and sometimes you should deploy static files

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>