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>

1 Answer 1

1

Have you tried this?

<view:(about|faq|terms)>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.