customgento / module-default-store-code-remover-m2
customgento/module-default-store-code-remover-m2
Default Store Code Remover for Magento 2 hides the store code in the default store from the URL.
Default Store Code Remover for Magento 2
Default Store Code Remover for Magento 2 hides the store code in the default store from the URL. The module is in effect only when web/url/use_store is enabled and is meant to be used for multistore setups, where the default shop should not contain any store code, whereas all other stores should.
The module also provides an optional, extended configuration to control store code removal per store view:
- Configuration path: Store > Configuration > Genral > Web
- Setting: Configure Store Code Removal Per Store (Yes/No)
- Default value: No (backwards compatible)
- Uses the original behavior: the store code is removed from the default store view URL, while all other store views keep their store code in the URL.
- If set to Yes
- An additional setting becomes available with a list of store views.
- Only the selected store views will have the store code removed from the URL.
- All non-selected store views will keep the store code in the URL.
- Default value: No (backwards compatible)
Installation
composer require customgento/module-default-store-code-remover-m2bin/magento module:enable CustomGento_DefaultStoreCodeRemoverbin/magento setup:upgradebin/magento cache:flushbin/magento setup:di:compile
Example
When the store codes in the url are disabled, the URL of the stores looks like this: https://website.com/.
When the store codes in the url are enabled, the URL of the stores looks like this: https://website.com/store_code/.
When this extension is installed and enabled, and the store codes are enabled to be shown in the url under
Store > Configuration > General > Web >Add Store Code, the module will not show the store code for the default store
but will show it for any other store.
So, for the default store the url will be https://website.com/ while for all other store, the URL will be : https://website.com/store_code
License
OSL - Open Software Licence 3.0
Copyright
© 2021 - present CustomGento GmbH
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 3.1.0 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2026-05-06 07:11:59 |
| 3.0.0 | stable | Not tested | Not yet tested Details | 2026-04-24 09:26:19 |
| 2.0.0 | stable | Not tested | Not yet tested Details | 2025-09-09 12:54:20 |
| 1.0.6 | stable | Not tested | Not yet tested Details | 2025-05-27 12:40:42 |
| 1.0.5 | stable | Not tested | Not yet tested Details | 2024-06-03 11:27:35 |
| 1.0.4 | stable | Not tested | Not yet tested Details | 2024-05-26 19:46:28 |
| 1.0.3 | stable | Not tested | Not yet tested Details | 2024-01-26 14:42:08 |
| 1.0.2 | stable | Not tested | Not yet tested Details | 2023-06-19 12:20:19 |
| 1.0.1 | stable | Not tested | Not yet tested Details | 2022-05-04 11:08:42 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2020-09-28 13:13:15 |
Requires 2
| Package | Constraint |
|---|---|
| php | ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0 |
| magento/module-store | ~101.0 |
Suggests 1
| Package | Reason |
|---|---|
| customgento/module-default-store-code-remover-m2-mageworx-compatibility | This module ensures compatibility with MageWorx extensions. |
No QA results yet
QA pipelines haven't run for this version. Compatibility and quality results appear here once the vendor publishes a tagged release that gets ingested.
More from customgento
View vendorThis Magento 2 module extends the default purchase order payment method by a customer group and admin filter.
Admin Payment for Magento 2 adds an internal payment method in the admin area.
Remove Viewed Products for Magento 2 removes the recently viewed products feature completely from Magento.
Remove Product Comparison for Magento 2 removes the product comparison feature completely from Magento.
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.