[pytest-dev] Redirect pytest.org over readthedocs

holger krekel holger at merlinux.eu
Sat Feb 13 13:07:08 EST 2016


On Sat, Feb 13, 2016 at 17:54 +0000, Bruno Oliveira wrote:

> 
> I think the next step to complete the docs move to readthedocs is a server
> side configuration
> to redirect all requests from pytest.org to pytest.readthedocs.org... don't
> know anything about the subject, but a quick google search suggests its
> easy and quick to setup and test:
> 
> http://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess
> 
> (yeah what a terrible website)
> 
> I understand it's just the matter of writing a .htaccess file in the
> pytest.org folder with these contents:
> 
> RewriteEngine on
> RewriteCond %{HTTP_HOST} ^pytest.org [NC,OR]
> RewriteCond %{HTTP_HOST} ^https://pytest.org [NC]
> RewriteRule ^(.*)$ https://pytest.readthedocs.org/en/$1 [L,R=301,NC]
> 
> I wanted to go over the list first in case I'm missing anything obvious,
> also I'm wary of messing with the .htaccess site of 37k daily accesses and

monthly accesses btw.  Let's move back quickly, though, if there are any problems.
So far i have not heart many complaints about pytest.org not working apart
from the recent ssl hickup which should be automated now with letsencrypt.

holger


> I know there are people in the list who knows their way around linux
> servers (The-Compiler for example). :)
> 
> Cheers,
> Bruno.

> _______________________________________________
> pytest-dev mailing list
> pytest-dev at python.org
> https://mail.python.org/mailman/listinfo/pytest-dev


-- 
about me:    http://holgerkrekel.net/about-me/
contracting: http://merlinux.eu


More information about the pytest-dev mailing list