2017 © Pedro Peláez
 

yii2-extension yii2-alias-url

Supports alias URL's. AKA seo URL's

image

c006/yii2-alias-url

Supports alias URL's. AKA seo URL's

  • Tuesday, September 19, 2017
  • by c006
  • Repository
  • 3 Watchers
  • 4 Stars
  • 131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Yii2 Seo URL's

Great way to manage rewrite paths for your website!, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

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

to the require section of your composer.json file., (*5)

Next check that a database connection is setup, (*6)

Run this to setup the tables., (*7)

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

or -- if using yii2-console, easy to use migration alternative, (*8)

$ yii migrate2 m000000_000000_c006_url, (*9)

Setup

Basic "config/web.php", (*10)

Advanced "config/main.php", (*11)

> 'components' => [ ... ... ... 'urlManager' => [ 'enablePrettyUrl' => FALSE, 'showScriptName' => FALSE, ], ],, (*12)

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

Do not use .htaccess, (*14)

**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] , (*15)

This goes for frontend and backend if using advanced., (*16)

Usage

Go to:, (*17)

/alias, (*18)

click > create url, (*19)

> public => abc private => site/about, (*20)

Now /abc will display site/about, (*21)

Note private can have a dynamic query string. > public => abc private => site/about?id=123, (*22)

Comments / Suggestions / Help

Use the issue ticket to provide any helpful feedback, requests or questions., (*23)

Thanks., (*24)

The Versions

19/09 2017

dev-master

9999999-dev

Supports alias URL's. AKA seo URL's

  Sources   Download

MIT

by Jon Chambers

url extension yii2 widgets seo

05/10 2016

dev-develop

dev-develop

Supports alias URL's. AKA seo URL's

  Sources   Download

MIT

by Jon Chambers

url extension yii2 widgets seo

29/07 2016

2.2

2.2.0.0

Supports alias URL's. AKA seo URL's

  Sources   Download

MIT

by Jon Chambers

url extension yii2 widgets seo

08/09 2015

v0.5.0

0.5.0.0

Supports alias URL's. AKA seo URL's

  Sources   Download

MIT

by Jon Chambers

url extension yii2 widgets seo

08/08 2015

1.0.x-dev

1.0.9999999.9999999-dev

Supports alias URL's. AKA seo URL's

  Sources   Download

MIT

by Jon Chambers

url extension yii2 widgets seo

08/08 2015

2.1.x-dev

2.1.9999999.9999999-dev

Supports alias URL's. AKA seo URL's

  Sources   Download

MIT

by Jon Chambers

url extension yii2 widgets seo