Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
[Stallman.org] Simplify ruleset (#11213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo authored and J0WI committed Jul 19, 2017
1 parent 79d77c7 commit 11c5eba
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/chrome/content/rules/Stallman.org.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
<!--
Invalid certificate:
ww.stallman.org
-->
<ruleset name="Stallman.org">

<target host="stallman.org" />
<target host="ww.stallman.org" />
<target host="www.stallman.org" />

<test url="http://stallman.org/" />
<test url="http://www.stallman.org/" />
<test url="http://ww.stallman.org/" />
<test url="https://ww.stallman.org/" />
<rule from="^http:"
to="https:" />

<!-- The stallman.org site does in fact have a
working ww (not a typo) subdomain that supports
HTTPS (but with a certificate mismatch error)
and which has the same content as the normal
www subdomain. As such, the ww subdomain is
redirected to the www subdomain. -->
<rule from="^https?://ww\.stallman\.org/"
to="https://www.stallman.org/" />
<rule from="^http://(www\.)?stallman\.org/"
to="https://$1stallman.org/" />
</ruleset>

0 comments on commit 11c5eba

Please sign in to comment.