PHP code example of asprada / magento2-module-rebuild-url-rewrite

1. Go to this page and download the library: Download asprada/magento2-module-rebuild-url-rewrite library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

asprada / magento2-module-rebuild-url-rewrite example snippets

  
bin/magento urlrewrite:rebuild categories,products,cms-pages  
  
bin/magento urlrewrite:rebuild categories  
  
bin/magento urlrewrite:rebuild products  
  
bin/magento urlrewrite:rebuild cms-pages  
  
bin/magento urlrewrite:rebuild categories -c=25,26,27  
  
bin/magento urlrewrite:rebuild products -p=1,2,3  
  
bin/magento urlrewrite:rebuild categories -s=1,2  
  
bin/magento urlrewrite:rebuild --help