<!--
	For problematic rules, see SourceForge-mismatches.xml.


	Note that SourceForge supports blanket https
	use, but only for members who are logged in.


	Nonfunctional domains:

		- \w+.cvs.sf.net		(reset)
		- p.sf.net			(reset)
		- \w+.cvs.sourceforge.net	(reset)
		- heanet.dl.sourceforge.net
		- netcologne.dl.sourceforge.net
		- switch.dl.sourceforge.net
		- *.hg.sourceforge.net		(unique subdomains for each project)
		- html5center.sourceforge.net	(refused)
		- p.sourceforge.net		(cert: *.sf.net; reset)
		- users.sourceforge.net **
		- \w+.users.sourceforge.net

	** Refused


	Fully covered domains:

		- sourceforge.net subdomains:

			- goparallel
			- ibmsmarteritservices


	Mixed content:

		- Images on \w+.git.sf.net from a.fsdn.com *

	* Secured by us

-->
<ruleset name="SourceForge (partial)">

	<target host="sf.net" />
	<target host="*.sf.net" />
	<target host="*.svn.sf.net" />
		<!--
			Different.
					-->
	<target host="sourceforge.net" />
	<target host="*.sourceforge.net" />
	<target host="*.svn.sourceforge.net" />
		<!--
			Redirects to http.

		<exclusion pattern="^http://\w+\.svn\.s(?:f|ourceforge)\.net/viewvc/" /-->
	<target host="*.sourceforge.jp" />


	<securecookie host="^downloads\.sourceforge\.net$" name=".+" />

        <rule from="^http://static\.sourceforge\.jp/"
                to="https://static.sourceforge.jp/" />

	<rule from="^http://(www\.)?s(?:f|ourceforge)\.net/(account|image)s/"
		to="https://$1sourceforge.net/$2s/" />

	<!--	Redirects to http first.
						-->

	<rule from="^http://(www\.)?sourceforge\.net/account/?"
		to="https://$1sourceforge.net/account/" />

	<rule from="^http://(www\.)?s(?:f|ourceforge)\.net/(blog|sflogo\.php)($|[\?/])"
		to="https://$1sourceforge.net/$2$3" />

	<!--	This should be above the next rule, so as to avoid double rewrites.
											-->
	<rule from="^http://downloads\.s(?:f|ourceforge)\.net/project/([^\?]+)\?r=http%3A%2F%2Fs"
		to="https://downloads.sourceforge.net/project/$1?r=https%3A%2F%2Fs" />

	<rule from="^http://(apps|downloads|goparallel|ibmsmarteritservices|images|lists|prdownloads|sflogo|static)\.s(?:f|ourceforge)\.net/"
		to="https://$1.sourceforge.net/" />

	<!--	jobs.sourceforge.net is equivalent to slashdot.personforce.com,
		but cert doesn't match that domain either.
					-->
	<rule from="^http://jobs\.sourceforge\.net/(build|images|include)/"
		to="https://secure.personforce.com/$1/" />

	<!--	Cert only matches *.svn.sourceforge.net
							-->
	<rule from="^http://([\w-]+)\.svn\.s(?:f|ourceforge)\.net/svnroot/"
		to="https://$1.svn.sourceforge.net/svnroot/" />

</ruleset>
