Skip to content

Magento 2

Add an extension through composer ignoring any composer errors

Section titled “Add an extension through composer ignoring any composer errors”

eg symphony needing php8 errors

Terminal window
composer require amasty/blog --ignore-platform-reqs --with-all-dependencies

Update magento after making changes (production mode)

Section titled “Update magento after making changes (production mode)”
Terminal window
bin/magento setup:upgrade &&
bin/magento setup:di:compile &&
bin/magento setup:static-content:deploy -f &&
bin/magento cache:clean &&
bin/magento cache:flush &&
bin/magento indexer:reindex

Using the website code

image-1649608305465.png

Add a redirect block to .htacess for each website

RewriteCond %{HTTP_HOST} ^(.*)sgstoolgroup\.com
RewriteRule .* [E=MAGE_RUN_CODE:sgs_com]
RewriteCond %{HTTP_HOST} ^(.*)sgstoolgroup\.com
RewriteRule .* [E=MAGE_RUN_TYPE:website]