PHPackages                             c006/yii2-alias-url - 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. c006/yii2-alias-url

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

c006/yii2-alias-url
===================

Supports alias URL's. AKA seo URL's

2.2(9y ago)41723MITPHP

Since Aug 8Pushed 4y ago3 watchersCompare

[ Source](https://github.com/c006/yii2-alias-url)[ Packagist](https://packagist.org/packages/c006/yii2-alias-url)[ RSS](/packages/c006-yii2-alias-url/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)DependenciesVersions (6)Used By (0)

Yii2 Seo URL's
==============

[](#yii2--seo-urls)

Great way to manage rewrite paths for your website!

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-source "c006/yii2-alias-url" ">=2.1"

```

or add

```
"c006/yii2-alias-url": ">=2.1"

```

to the require section of your `composer.json` file.

**Next** check that a database connection is setup

**Run** this to setup the tables.

```
$ yii migrate --migrationPath=@vendor/c006/yii2-alias-url/migrations

```

or -- if using yii2-console, easy to use migration alternative

`$ yii migrate2 m000000_000000_c006_url`

Setup
-----

[](#setup)

Basic **"config/web.php"**

Advanced **"config/main.php"**

>

```
    'components' => [
        ...
        ...
        ...
        'urlManager' => [
            'enablePrettyUrl' => FALSE,
            'showScriptName'  => FALSE,
        ],
    ],

```

>

```
    'modules'    => [
        ...
        ...
        ...
        'alias' => [
            'class' => 'c006\url\Module',
            'is_frontend' => {TRUE/FALSE}
        ],
    ],

```

**Do not use `.htaccess`**

\*\*Use Mod\_Rewrite in your host / virtual host file

>

```

    RewriteEngine On
    RewriteLog "/var/log/apache2/rewrite.log"
    RewriteLogLevel 0
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule (assets|images|css|videos)($|/) - [L]
    RewriteCond %{REQUEST_URI} !^/index
    RewriteRule (.*) /index.php$1
    RewriteRule . /index.php [L]

```

This goes for frontend and backend if using advanced.

Usage
-----

[](#usage)

Go to:

`/alias`

`click > create url`

>

```
public => abc
private => site/about

```

Now `/abc` will display `site/about`

Note private can have a dynamic query string.

>

```
public => abc
private => site/about?id=123

```

Comments / Suggestions / Help
-----------------------------

[](#comments--suggestions--help)

Use the issue ticket to provide any helpful feedback, requests or questions.

Thanks.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

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

Total

4

Last Release

3574d ago

Major Versions

1.0.x-dev → 2.1.x-dev2015-08-08

v0.5.0 → 2.22016-07-29

### Community

Maintainers

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

---

Top Contributors

[![c006](https://avatars.githubusercontent.com/u/7686064?v=4)](https://github.com/c006 "c006 (3 commits)")

---

Tags

urlyii2extensionwidgetsseo

### Embed Badge

![Health badge](/badges/c006-yii2-alias-url/health.svg)

```
[![Health](https://phpackages.com/badges/c006-yii2-alias-url/health.svg)](https://phpackages.com/packages/c006-yii2-alias-url)
```

###  Alternatives

[koehlersimon/slug

Helps you managing the URL slugs of your TYPO3 site

2965.7k](/packages/koehlersimon-slug)[umanskyi31/opengraph

Created a new component for Yii2. The Open Graph component for your website

119.7k](/packages/umanskyi31-opengraph)[amirax/yii2-seo-tools

SEO tools for Yii 2 framework

131.1k](/packages/amirax-yii2-seo-tools)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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