📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

606 Modules
385 Ready
218 Need Help
🏆 Leaderboard
Stable vv2.0.0

CustomGento_DefaultStoreCodeRemover

customgento/module-default-store-code-remover-m2

This Magento 2 module hides the store code in the default store from the URL.

37,288
Downloads
Below average
26
GitHub Stars
Below average
4mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
2 warnings
PHPStan Level 9

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

vv2.0.0 on Magento 2.4.8-p3
Dec 15, 2025
vv2.0.0 on Magento 2.4.8-p2
Sep 11, 2025
vv1.0.6 on Magento 2.4.8-p2
Aug 14, 2025
vv1.0.6 on Magento 2.4.8
Jun 13, 2025
vv1.0.5 on Magento 2.4.8
May 17, 2025
vv1.0.5 on Magento 2.4.7-p4
Feb 15, 2025

+7 older tests

Share This Module's Status

CustomGento_DefaultStoreCodeRemover Magento compatibility status badge

README

Loaded from GitHub

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.

Installation

  • composer require customgento/module-default-store-code-remover-m2
  • bin/magento module:enable CustomGento_DefaultStoreCodeRemover
  • bin/magento setup:upgrade
  • bin/magento cache:flush
  • bin/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

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.