Skip to content

Commit

Permalink
add redirect for api
Browse files Browse the repository at this point in the history
  • Loading branch information
martior committed Oct 23, 2012
1 parent ec541d4 commit 44ce4fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conf/httpd.conf
Expand Up @@ -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
Expand Down

0 comments on commit 44ce4fc

Please sign in to comment.