Yii Framework Forum: Urlmanager Permalink - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Urlmanager Permalink Rate Topic: -----

#1 User is offline   @josor_ 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 09-January 14

Posted 09 January 2014 - 06:07 PM

Hi!

I'm new on Yii and I like it! Thank ouy so much!

I have a site that use Yii and I have a trouble with urlManager because I have the following urls:

{host}/antyhing-else-100.html
{host}/another-thing-101.html
{host}/okay-this-is-permalink-101.html


But I don't know exactly what is the correct rule to point to a controller/action.

'rules'=>array(
 '/<\d\w\-+>-<id:\d+>' => array('detail/index','urlSuffix'=>'.html', caseSensitive=>false), // Not work, I made this regex
 '<controller:\w+>/<id:\d+>'=>'<controller>/view',
 '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
 '<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
),


I try a lot options but the page I got HTTP 404 and I need to show that page.

Can you help me?

Thanks!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users