I am using sub-domain as module using parameterizing hostnames. However, I want to point http and https traffic to same page currently I am achieving this with this approach.
'https://<module:\w+>.lvh.me/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',
'http://<module:\w+>.lvh.me/<controller:\w+>/<action:\w+>/<id:\d+>' => '<module>/<controller>/<action>',
Is there any better approach of doing this by using just one rule. I tried this one but it did not worked
'^(http|https)://<module:\w+>.lvh.me/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>'
Any suggestion will be highly appreciated.