PHPackages                             customgento/module-default-store-code-remover-m2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. customgento/module-default-store-code-remover-m2

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

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.

v3.1.0(2mo ago)2745.9k↓20.6%51OSL-3.0PHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0CI failing

Since Sep 25Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/customgento/module-default-store-code-remover-m2)[ Packagist](https://packagist.org/packages/customgento/module-default-store-code-remover-m2)[ GitHub Sponsors](https://github.com/customgento)[ RSS](/packages/customgento-module-default-store-code-remover-m2/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (1)

Default Store Code Remover for Magento 2
========================================

[](#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 &gt; Configuration &gt; Genral &gt; 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.

Installation
------------

[](#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
-------

[](#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 &gt; Configuration &gt; General &gt; Web &gt;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
-------

[](#license)

[OSL - Open Software Licence 3.0](https://opensource.org/licenses/osl--3.0.php)

Copyright
---------

[](#copyright)

© 2021 - present CustomGento GmbH

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity41

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~227 days

Recently: every ~175 days

Total

10

Last Release

80d ago

Major Versions

v1.0.6 → v2.0.02025-09-09

v2.0.0 → 3.0.02026-04-24

PHP version history (7 changes)1.0.0PHP ~7.2.0||~7.3.0||~7.4.0

1.0.1PHP ~7.3.0||~7.4.0||~8.1.0

v1.0.2PHP ~7.3.0||~7.4.0||~8.1.0||~8.2.0

v1.0.4PHP ~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0

v1.0.6PHP ~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0

3.0.0PHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

v3.1.0PHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb85d8f7d2571d1c913f90b0a4a832eec0c88e8522ec915d5ffe9b92a4e397c8?d=identicon)[sprankhub](/maintainers/sprankhub)

---

Top Contributors

[![iranimij](https://avatars.githubusercontent.com/u/31434218?v=4)](https://github.com/iranimij "iranimij (19 commits)")[![kapilpandya22](https://avatars.githubusercontent.com/u/191165783?v=4)](https://github.com/kapilpandya22 "kapilpandya22 (18 commits)")[![sprankhub](https://avatars.githubusercontent.com/u/930199?v=4)](https://github.com/sprankhub "sprankhub (10 commits)")[![norgeindian](https://avatars.githubusercontent.com/u/11156287?v=4)](https://github.com/norgeindian "norgeindian (7 commits)")[![annv99](https://avatars.githubusercontent.com/u/190375859?v=4)](https://github.com/annv99 "annv99 (1 commits)")

---

Tags

magentomagento2magento2-extensionmagento2-extension-freemagento2-module

### Embed Badge

![Health badge](/badges/customgento-module-default-store-code-remover-m2/health.svg)

```
[![Health](https://phpackages.com/badges/customgento-module-default-store-code-remover-m2/health.svg)](https://phpackages.com/packages/customgento-module-default-store-code-remover-m2)
```

###  Alternatives

[baldwin/magento2-module-url-data-integrity-checker

Magento 2 module which can find potential url related problems in your catalog data

282822.9k](/packages/baldwin-magento2-module-url-data-integrity-checker)[semaio/magento2-configimportexport

Import/Export core\_config\_data values in Magento 2

165782.1k3](/packages/semaio-magento2-configimportexport)[fishpig/magento2-wordpress-integration

Securely integrate WordPress and Magento 2.

83369.2k7](/packages/fishpig-magento2-wordpress-integration)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[firegento/magesetup2

MageSetup provides the necessary configuration (system config, tax, agreements, etc. for a national market.

122347.4k1](/packages/firegento-magesetup2)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
