You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Sahlberg <da...@gmail.com> on 2021/08/11 11:33:04 UTC

Re: svn commit: r1892176 - /subversion/site/staging/.htaccess

My intention is to redirect all visitors to https. This doesn't seem to
work at all so I have probably made some stupid mistake. I'm a bit short on
time this week, but I have made a note and will look at it shortly. It
doesn't seem to have any negative impact, and it is anyway only on the
staging site for now.
Kind regards
/Daniel

Den tis 10 aug. 2021 kl 15:11 skrev <ds...@apache.org>:

> Author: dsahlberg
> Date: Tue Aug 10 13:11:56 2021
> New Revision: 1892176
>
> URL: http://svn.apache.org/viewvc?rev=1892176&view=rev
> Log:
> in site/staging:
>
> * .htaccess: Add a rewrite rule to redirect http to https.
>
> Modified:
>     subversion/site/staging/.htaccess
>
> Modified: subversion/site/staging/.htaccess
> URL:
> http://svn.apache.org/viewvc/subversion/site/staging/.htaccess?rev=1892176&r1=1892175&r2=1892176&view=diff
>
> ==============================================================================
> --- subversion/site/staging/.htaccess (original)
> +++ subversion/site/staging/.htaccess Tue Aug 10 13:11:56 2021
> @@ -14,3 +14,6 @@ RedirectMatch permanent ^/issue-tracker(
>  RedirectMatch ^/issue[^A-Za-z0-9]?(\d+)$
> https://issues.apache.org/jira/browse/SVN-$1
>  RewriteRule ^/?download(\.html)?/?$ /download.cgi [PT]
>
> +RewriteCond %{SERVER_PORT} 80
> +RewriteRule ^(.*)$ https://subversion.apache.org/$1 [R,L]
> +# Don't add any rules below, since the  L flag terminate further
> processing
>
>
>