Am trying to add secure URL to my custom module - below is my config.xml sample code
<frontend>
<secure_url>
<scheme>/scheme/</scheme>
</secure_url>
<routers>
<scheme>
<use>standard</use>
<args>
<module>Companyname_Scheme</module>
<frontName>scheme</frontName>
</args>
</scheme>
</routers>
</frontend>
<global>
<rewrite>
<myschemes>
<from><![CDATA[/myschemes\/(.*)/]]></from>
<to><![CDATA[scheme/user/$1/]]></to>
<complete>1</complete>
</myschemes>
</rewrite>
My need is to make myschemes url to access only through https:// if the user forced to load on non http i.e., http:// .
If i add secure url for myschemes then above rewrite is not working. If i enter https://www.example.com/myschemes/ as url it is redirecting to https://www.example.com/scheme/user//
How can I achieve this? Please help.