1

I want to reroute old html pages. The format is: /title-35-of-page.863.en.html I want to route every adresse with .html at the end also get the lang and id part of the address for further handling, but have problems with the dots. This are some versions that i tried, but none of them worked.

'(?P<title>[-\w\d]+).html' => array('action' => 'jpk/rerouteOldPages')
'(?P<title>[-\w\d]+)html' => array('action' => 'jpk/rerouteOldPages')
'(?P<title>[-\w\d]+)\.(?P<papayaId>\d+)\.(?P<language>\[a-z]{2})\.html' => array('action' => 'jpk/rerouteOldPages')

1 Answer 1

1

Ok, this works, the backslash behind "...language>" was wrong:

'(?P<title>[-\w\d]+)\.(?P<papayaId>\d+)\.(?P<language>[\w]{2})\.html' => array('action' => 'jpk/rerouteOldPages'),

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.