1

I need a rule to redirect only certain terms.

  '<view:(about)>'=>'site/page/view/<view>',
  '<view:(faq)>'=>'site/page/view/<view>',
  '<view:(terms)>'=>'site/page/view/<view>',

I cannot use

<view:\w+>'=>'site/page/view/<view>

because i am using another rule for all terms other than this.

So is there any way to write an expression to short the 3 line of code to single one like this.

<view:(about),(faq),(terms)>'=>'site/page/view/<view>
4

1 回答 1

1

你试过这个吗?

<view:(about|faq|terms)>
于 2013-09-01T13:20:11.250 回答