Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1.  'urlManager'      => [
  2.             'baseUrl'         => $baseUrlFront,
  3.             'enablePrettyUrl' => true,
  4.             'showScriptName'  => false,
  5.             'rules'           => [
  6.                 '<post_type:[\w-@]+>/<post_slug:[\w-@]+>'                      => 'post/view',
  7.                 '<taxonomy_slug:[\w-@]+>/<term_slug:[\w-@]+>'                  => 'term/view',
  8.                 '<post_type:[\w-@]+>/<post_slug:[\w-@]+>/<media_slug:[\w-@]+>' => 'media/view',
  9.                 'page/contact'                                                 => 'site/contact',
  10.                 'robots.txt'                                                   => 'site/robots',
  11.                 'site/<action:\w+>'                                            => 'site/not-found',
  12.             ]
  13.         ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement