Link in cgit.sxemacs.org
[website] / .htaccess
index 017bbae..dd96aeb 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -2,9 +2,28 @@ Options Indexes Includes
 XBitHack On
 AddType text/html .template
 AddOutputFilter INCLUDES .template
+SetEnvIf User-Agent "git/*" BadGuy=1
+Order allow,deny
+Deny from env=BadGuy
+Allow from all
+
+## Dreamhost Affiliate Rewrite
+<IfModule mod_rewrite.c>
+  Options +FollowSymlinks
+  RewriteEngine On
+  RewriteBase /
+  RewriteCond %{REQUEST_URI} ^/hosting$ [NC]
+  RewriteRule ^(.*)$ http://www.dreamhost.com/r.cgi?606408 [L]
+</IfModule>
+## End Dreamhost
+
+## SXEmacs/LJ Rewrite
+<IfModule mod_rewrite.c>
+  Options +FollowSymlinks
+  RewriteEngine On
+  RewriteBase /
+  RewriteCond %{REQUEST_URI} ^/lj.el$ [NC]
+  RewriteRule ^(.*)$ http://bastard.steveyoungs.com/~steve/lj/lj.el [L]
+</IfModule>
+## End Dreamhost
 
-# deny access to the toplevel .git directory
-<Directory /home/jackalx_sy/sxemacs.org/.git/>
-        Order Deny,Allow
-        Deny from All
-</Directory>