Free magento 2 extension to solve the product url rewrite issue | Manish Joy
Go to Magento2 root folder
Create a directory app/code/Magento/ManishJoy/ProductUrlRewrite
Enter following commands to enable module:
bin/magento setup:upgrade
bin/magento setup
deploy -f
Log into Terminal/SSH/Putty
Navigate to root directory of Magento (e.g. /var/www/html
)
Enter following commands to enable module:
# Regenerate url for all products
php bin/magento mj
run
# Regenerate url for products with ids (1, 2, 3, 4)
php bin/magento mj
run 1 2 3 4
—- OR —-
Prerequisite | How to check | For more information |
---|---|---|
Apache 2.2 or 2.4 | Ubuntu: apache2 -v CentOS: httpd -v | Apache |
PHP 7.1.x | php -v | PHP Ubuntu PHP CentOS |
MySQL 5.6.x | mysql -u [root user name] -p | MySQL |