From 44ce4fc0752eaf4026cbdf7053958691b2da1786 Mon Sep 17 00:00:00 2001 From: Martin Opstad Reistadbakk Date: Tue, 23 Oct 2012 23:19:49 +0200 Subject: [PATCH] add redirect for api --- conf/httpd.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/httpd.conf b/conf/httpd.conf index 0ebcef35..0f573e88 100644 --- a/conf/httpd.conf +++ b/conf/httpd.conf @@ -3,10 +3,17 @@ # # This file is normally included from the Apache HTTPD setup. ServerAlias collective-docs.plone.org +ServerAlias api.plone.org RewriteEngine on RewriteCond %{HTTP_HOST} ^collective-docs.plone.org RewriteRule ^(.*)$ http://developer.plone.org$1 [R=permanent,L] + +RewriteCond %{HTTP_HOST} ^api.plone.org +RewriteRule ^.*$ http://developer.plone.org/reference_manuals/external/plone.api/ [R=permanent,L] + + + RewriteRule ^/en/latest(.*)$ http://developer.plone.org$1 [R=permanent,L] DocumentRoot /var/www/developer.plone.org/var/public_html