|
| 1 | +<!-- |
| 2 | + readthedocs.org and readthedocs.com work correctly. |
| 3 | + |
| 4 | + Working subdomains on readthedocs.org / readthedocs.com: |
| 5 | + - www |
| 6 | + - media |
| 7 | +
|
| 8 | + All other *.readthedocs.(com|org) and *.rtfd.org |
| 9 | + use the '*.readthedocs.org' certificate. |
| 10 | +--> |
| 11 | + |
| 12 | +<ruleset name="Read the Docs"> |
| 13 | + <target host="readthedocs.org" /> |
| 14 | + <target host="*.readthedocs.org" /> |
| 15 | + |
| 16 | + <target host="readthedocs.com" /> |
| 17 | + <target host="*.readthedocs.com" /> |
| 18 | + |
| 19 | + <target host="rtfd.org" /> |
| 20 | + <target host="*.rtfd.org" /> |
| 21 | + |
| 22 | + <exclusion pattern="^https://www\.readthedocs\.com/" /> |
| 23 | + <exclusion pattern="^https://media\.readthedocs\.com/" /> |
| 24 | + |
| 25 | + <test url="http://www.readthedocs.com/" /> |
| 26 | + <test url="http://media.readthedocs.com/" /> |
| 27 | + <test url="https://www.readthedocs.com/" /> |
| 28 | + <test url="https://media.readthedocs.com/" /> |
| 29 | + |
| 30 | + <test url="http://testing.readthedocs.org/" /> |
| 31 | + <test url="http://testing.readthedocs.com/" /> |
| 32 | + <test url="https://testing.readthedocs.com/" /> |
| 33 | + <test url="http://testing.rtfd.org/" /> |
| 34 | + |
| 35 | + <securecookie host="^readthedocs\.org$" name=".+" /> |
| 36 | + <securecookie host="^readthedocs\.com$" name=".+" /> |
| 37 | + |
| 38 | + <rule from="^http://(www|media)\.readthedocs\.com/" to="https://$1.readthedocs.com/" /> |
| 39 | + <rule from="^https?://(.+)\.readthedocs\.com/" to="https://$1.readthedocs.org/" /> |
| 40 | + <rule from="^https?://(.+\.)?rtfd\.org/" to="https://$1readthedocs.org/" /> |
| 41 | + <rule from="^http:" to="https:" /> |
| 42 | +</ruleset> |
0 commit comments