+ All Categories
Home > Documents > URL Optimization after Migration

URL Optimization after Migration

Date post: 17-Jan-2022
Category:
Upload: others
View: 5 times
Download: 0 times
Share this document with a friend
7
URL Optimization after Migration User Guide for Magento 2 SafeMage
Transcript

URL Optimization after Migration

User Guide for Magento 2SafeMage

How to install a Safemage extension (Marketplace)

The Marketplace version of the extension can be installed via CLI. For

complete guide, please navigate to https://devdocs.magento.com/extensions/

install/.

As the extension’s Composer name, please use the following:

safemage/url-optimization

How to install a Safemage extension

To install the extension, please follow the steps below:

1. Extract the contents of the downloaded package

2. Upload the contents of the 'extension' folder to the root folder of Magento 2

3. Connect to the server via SSH and navigate to the folder with Magento 2

4. Extecute the commands below one by one:

• php bin/magento setup:upgrade

• php bin/magento setup:di:compile

• php bin/magento setup:static-content:deploy (if production mode is on)

5. Enjoy the show!

Last login: Tue Jun 1 14:11:03 on ttys000SafeMage-iMac:~ safemageadmin$ php bin/magento...............................................................setup setup:backup Takes backup of Magento Application code base, media and database setup:config:set Creates or modifies the deployment configuration setup:cron:run Runs cron job scheduled for setup application setup:db-data:upgrade Installs and upgrades data in the DB setup:db-schema:upgrade Installs and upgrades the DB schema setup:db:status Checks if DB schema or data requires upgrade setup:di:compile Generates DI configuration and all missing classes that can be auto-generated setup:install Installs the Magento application setup:performance:generate-fixtures Generates fixtures setup:rollback Rolls back Magento Application codebase, media and database setup:static-content:deploy Deploys static view files setup:store-config:set Installs the store configuration setup:uninstall Uninstalls the Magento application setup:upgrade Upgrades the Magento application, DB data, and schematheme theme:uninstall Uninstalls themeurl-optimization url-optimization:generate-url-rewrites Regenerates the "url_rewrite" table url-optimization:optimize-all Runs optimization procedures listed below automatically (recommended) url-optimization:unique-url-keys Makes all "Url Key" used for Products, Categories and CMS Pages unique

Once the extension has been installed, run the command at the top to view the new set of commands available.

console: command list

Last login: Tue Jun 1 14:11:26 on ttys000SafeMage-iMac:~ safemageadmin$ php bin/magento url-optimization:optimize-all

========== Running "Optimize All" command 2017-06-1 14:11:26 ==========Found 75 product(s) with duplicated url key.Updating product URL Keys...relyon-memory-classic > relyon-memory-classic-13919 (Product ID: 13919)relyon-bedstead-superior-1400 > relyon-bedstead-superior-1400-713 (Product ID: 713)g-plan-malvern > g-plan-malvern-723 (Product ID: 723)g-plan-malvern > g-plan-malvern-724 (Product ID: 724)collins-hayes-camelot > collins-hayes-camelot-1359 (Product ID: 1359)tempur-seat-wedge > tempur-seat-wedge-1730 (Product ID: 1730)relaxateeze-avanti-swivel-recliner > relaxateeze-avanti-swivel-recliner-8754 (Product ID: 8754)relaxateeze-avanti-swivel-recliner > relaxateeze-avanti-swivel-recliner-8756 (Product ID: 8756)sherborne-lynton-recliner > sherborne-lynton-recliner-1807 (Product ID: 1807)sherborne-lynton-recliner > sherborne-lynton-recliner-2091 (Product ID: 2091)sherborne-comfi-sit-recliner > sherborne-comfi-sit-recliner-1817 (Product ID: 1817)alstons-salcombe-3-seater-sofa > alstons-salcombe-3-seater-sofa-1872 (Product ID: 1872)alstons-salcombe-snuggler > alstons-salcombe-snuggler-1875 (Product ID: 1875)barbie-in-the-pink-shoes-ballerina-doll-asst > barbie-in-the-pink-shoes-ballerina-doll-asst-1935 (Product ID: 1935)ravensburger-empire-state-building > ravensburger-empire-state-building-9839 (Product ID: 9839)ravensburger-empire-state-building > ravensburger-empire-state-building-9840 (Product ID: 9840)peppa-pig-stheme-park-balloon-ride > peppa-pig-stheme-park-balloon-ride-2228 (Product ID: 2228)ercol-bosco-5-drawer-wide-chest > ercol-bosco-5-drawer-wide-chest-3052 (Product ID: 3052)ercol-bosco-2-door-wardrobe > ercol-bosco-2-door-wardrobe-3055 (Product ID: 3055)ercol-bosco-small-extending-dining-table > ercol-bosco-small-extending-dining-table-5002 (Product ID: 5002)ercol-bosco-small-extending-dining-table > ercol-bosco-small-extending-dining-table-5003 (Product ID: 5003)ercol-windsor-chair > ercol-windsor-chair-5091 (Product ID: 5091)ercol-windsor-chair > ercol-windsor-chair-5092 (Product ID: 5092)ercol-windsor-chair > ercol-windsor-chair-5119 (Product ID: 5119)easy-set-pool > easy-set-pool-7703 (Product ID: 7703)havaianas-brasil-logo > havaianas-brasil-logo-16889 (Product ID: 16889)havaianas-brasil-logo > havaianas-brasil-logo-16893 (Product ID: 16893)havaianas-brasil-logo > havaianas-brasil-logo-16897 (Product ID: 16897)

 • • •

console: url-optimization (page 1)

If automatic optimization procedure is what you need, just execute the command on top of the page.

Once commenced, the procedure requires no further actions from user.

Last login: Tue Jun 1 14:11:26 on ttys000SafeMage-iMac:~ safemageadmin$

• • •Found 9 category(ies) with duplicated url key.Updating category URL Keys...women > women-909 (Category ID: 909)men > men-900 (Category ID: 900)pillows > pillows-92 (Category ID: 92)swivel-chairs > swivel-chairs-541 (Category ID: 541)sofa-sets > sofa-sets-636 (Category ID: 636)bedroom-furniture > bedroom-furniture-807 (Category ID: 807)sound-vision > sound-vision-573 (Category ID: 573)special > special-579 (Category ID: 579)collections > collections-896 (Category ID: 896)Found 2 product(s)/category(ies) with duplicated url key.Updating product URL Keys...duresta-trafalgar-collection > duresta-trafalgar-collection-9625 (Product ID: 9625)duresta-waldorf-collection > duresta-waldorf-collection-9626 (Product ID: 9626)Found 0 product(s)/page(s) with duplicated url key.Found 1 category(ies)/page(s) with duplicated url key.Updating CMS page identifiers...home > home-25 (Page ID: 25)Url keys were successfully updated.Deleting records from url_rewrite table...Deleted 41281 records.Clearing product url path records.Done.Clearing category url path records.Done.Generating category and product url rewrites.Category ID: 4800 595/595 [============================] 100% 2 minsGenerating cms page url rewrites.Page ID: 73 62/62 [============================] 100% 4 secsUrl rewrites were successfully regenerated.========== Optimization completed successfully ==========

The optimization ends with a success message. You can find the full log in var/log/url_optimization.log.

console: url-optimization (page 2)

SafeMageSafeMageDesigned and developed byDesigned and developed by

URL Optimization after Migration for M2

Should you have any questions, visit SafeMage or send us email at [email protected]

URL Optimization after Migration for M2

Should you have any questions, visit SafeMage or send us email at [email protected]


Recommended