[Mageia-sysadm] [667] add special case to redirect http://donate.mageia.org/ to en version

root at mageia.org root at mageia.org
Thu Jan 6 01:05:31 CET 2011


Revision: 667
Author:   boklm
Date:     2011-01-06 01:05:31 +0100 (Thu, 06 Jan 2011)
Log Message:
-----------
add special case to redirect http://donate.mageia.org/ to en version

Modified Paths:
--------------
    puppet/modules/websites/templates/vhost_donate.conf

Modified: puppet/modules/websites/templates/vhost_donate.conf
===================================================================
--- puppet/modules/websites/templates/vhost_donate.conf	2011-01-05 23:55:39 UTC (rev 666)
+++ puppet/modules/websites/templates/vhost_donate.conf	2011-01-06 00:05:31 UTC (rev 667)
@@ -3,6 +3,7 @@
     ServerAlias donation.<%= domain %>
 
     RewriteEngine on
+    RewriteRule ^/?$ http://www.<%= domain %>/en/donate/ [R=permanent,L]
     RewriteRule ^/(.*)$ http://www.<%= domain %>/$1/donate/ [R=permanent,L]
     #DocumentRoot /dev/null
     CustomLog /var/log/httpd/donate_log combined
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110106/7c76f417/attachment-0001.html>


More information about the Mageia-sysadm mailing list