Difference between revisions of "User:Eighty5cacao/misc/HTTPS Everywhere/rulewip/Pin Eight"

From Pin Eight
Jump to: navigation, search
(adding 7z to list of file types per http://forums.nesdev.com/viewtopic.php?f=22&t=10640)
m (unnecessary commas?)
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
     <target host="www.pineight.com" />
 
     <target host="www.pineight.com" />
  
 +
 +
    <!--
 +
        Only the wiki sets cookies, and they are secured anyway.
 +
    -->
 
     <securecookie host="^(?:www\.)?pineight\.com$" name=".*" />
 
     <securecookie host="^(?:www\.)?pineight\.com$" name=".*" />
 +
  
 
     <rule from="^http://(www\.)?pineight\.com/mw/"
 
     <rule from="^http://(www\.)?pineight\.com/mw/"
 
             to="https://$1pineight.com/mw/" />
 
             to="https://$1pineight.com/mw/" />
  
     <rule from="^http://(www\.)?pineight\.com/(.+)\.(7z|css|gif|jpe?g|js|png|txt|zip)$"
+
    <!--
             to="https://$1pineight.com/$2.$3" />
+
        Paths with file extensions other than htm(l) are usually not user-visible:
 +
    -->
 +
     <rule from="^http://(www\.)?pineight\.com/(.+)\.(?!htm)"
 +
             to="https://$1pineight.com/$2." />
  
 
</ruleset>
 
</ruleset>
 
</syntaxhighlight>{{DEFAULTSORT:Pin Eight}}
 
</syntaxhighlight>{{DEFAULTSORT:Pin Eight}}

Revision as of 01:35, 23 December 2013

<!--
    For rules disabled by request of the site owner, see Pin_Eight-experimental.xml.


    web369.webfaction.com

-->
<ruleset name="Pin Eight (partial)">
    <target host="pineight.com" />
    <target host="www.pineight.com" />


    <!--
        Only the wiki sets cookies, and they are secured anyway.
    -->
    <securecookie host="^(?:www\.)?pineight\.com$" name=".*" />


    <rule from="^http://(www\.)?pineight\.com/mw/"
            to="https://$1pineight.com/mw/" />

    <!--
        Paths with file extensions other than htm(l) are usually not user-visible:
    -->
    <rule from="^http://(www\.)?pineight\.com/(.+)\.(?!htm)"
            to="https://$1pineight.com/$2." />

</ruleset>