PHPackages                             aurmil/magento-force-store-code - 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. aurmil/magento-force-store-code

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

aurmil/magento-force-store-code
===============================

Magento - Force store code extension

v1.4.0(8y ago)4671MITPHP

Since Dec 16Pushed 7y ago3 watchersCompare

[ Source](https://github.com/aurmil/magento-force-store-code)[ Packagist](https://packagist.org/packages/aurmil/magento-force-store-code)[ Docs](https://github.com/aurmil/magento-force-store-code)[ RSS](/packages/aurmil-magento-force-store-code/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Magento - Force store code extension
====================================

[](#magento---force-store-code-extension)

Overview
--------

[](#overview)

Activating "Add Store Code to Urls" in Magento back office will let your main URL available, even without store code.

This extension checks, only for the home page, if the store code is in URL. If it is not, it redirects (301) to "base URL + current website's default store view code".

This extensions does only manage home page, not internal pages, because for them, Magento automatically adds store code in URL.

Compatibility
-------------

[](#compatibility)

Tested on Magento CE 1.6 - 1.9

Notes
-----

[](#notes)

- Free and open source
- Fully configurable
- Bundled with English and French translations

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

[](#installation)

No Magento files will be modified, no extended class, no overridden method.

### With modman

[](#with-modman)

- `$ modman clone https://github.com/aurmil/magento-force-store-code.git`

### Manually

[](#manually)

- Download the latest version of this module [here](https://github.com/aurmil/magento-force-store-code/archive/master.zip)
- Unzip it
- Move the "app" folder into the root directory of your Magento application, it will be merged with the existing "app" folder

### With composer

[](#with-composer)

- Adapt the following "composer.json" file into yours:

```
{
    "require": {
        "aurmil/magento-force-store-code": "dev-master"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "http://packages.firegento.com"
        },
        {
            "type": "vcs",
            "url": "git://github.com/aurmil/magento-force-store-code"
        }
    ],
    "extra": {
        "magento-root-dir": "./"
    }
}

```

- Install or update your composer project dependencies

Usage
-----

[](#usage)

In **System &gt; Configuration &gt; General &gt; Web &gt; Url Options**, this extension adds a new option: **Force Store Code in Urls**

[![](docs/images/force-store-code-config.png)](docs/images/force-store-code-config.png)

- Select "No" to stay with the Magento basic behavior
- Select "Yes" (default value) to activate the extension

Note: HTTP redirection may be cached by your browser if you had previously activated the extension so clean your cache after selecting "No" if redirection keeps being done.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/aurmil/magento-force-store-code/blob/master/LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~497 days

Total

3

Last Release

3171d ago

### Community

Maintainers

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

---

Top Contributors

[![aurmil](https://avatars.githubusercontent.com/u/1309545?v=4)](https://github.com/aurmil "aurmil (28 commits)")

---

Tags

magentoseo

### Embed Badge

![Health badge](/badges/aurmil-magento-force-store-code/health.svg)

```
[![Health](https://phpackages.com/badges/aurmil-magento-force-store-code/health.svg)](https://phpackages.com/packages/aurmil-magento-force-store-code)
```

###  Alternatives

[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[spatie/laravel-robots-middleware

Add an `all` or `none` robots header to your requests via a middleware in Laravel

3352.1M5](/packages/spatie-laravel-robots-middleware)[magento/magento-composer-installer

Composer installer for Magento modules

7523.3M318](/packages/magento-magento-composer-installer)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[yoast-seo-for-typo3/yoast_seo

Yoast SEO for TYPO3

521.6M9](/packages/yoast-seo-for-typo3-yoast-seo)

PHPackages © 2026

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