<ruleset name="Swiss Federal Railways (SBB/CFF/FFS)">
    <target host="sbb.ch" />
    <target host="www.sbb.ch" />

    <target host="cff.ch" />
    <target host="www.cff.ch" />

    <target host="ffs.ch" />
    <target host="www.ffs.ch" />

    <target host="mobilbonus.ch" />
    <target host="*.mobilbonus.ch" />

    <securecookie host="^\.www\.sbb\.ch$" name=".+" />
    <securecookie host="^\.www\.cff\.ch$" name=".+" />
    <securecookie host="^\.www\.ffs\.ch$" name=".+" />

    <rule from="^https?://sbb\.ch/"
        to="https://www.sbb.ch/" />
    <rule from="^http://([^/:@]+)?\.sbb\.ch/"
        to="https://$1.sbb.ch/" />

    <rule from="^https?://cff\.ch/"
        to="https://www.cff.ch/" />
    <rule from="^http://([^/:@]+)?\.cff\.ch/"
        to="https://$1.cff.ch/" />

    <rule from="^https?://ffs\.ch/"
        to="https://www.ffs.ch/" />
    <rule from="^http://([^/:@]+)?\.ffs\.ch/"
        to="https://$1.ffs.ch/" />

    <rule from="^https?://mobilbonus\.ch/"
        to="https://www.mobilbonus.ch/" />
    <rule from="^http://([^/:@]+)?\.mobilbonus\.ch/"
        to="https://$1.mobilbonus.ch/" />
</ruleset>
