[pytest-dev] Redirect pytest.org over readthedocs
Bruno Oliveira
nicoddemus at gmail.com
Sat Feb 13 12:54:13 EST 2016
Hi guys,
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
I know there are people in the list who knows their way around linux
servers (The-Compiler for example). :)
Cheers,
Bruno.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20160213/fec33587/attachment.html>
More information about the pytest-dev
mailing list