This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stallman.org] Simplify ruleset (#11213)
- Loading branch information
Showing
1 changed file
with
8 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |