X-Git-Url: http://cgit.sxemacs.org/?p=website;a=blobdiff_plain;f=.htaccess;h=d396fc422d69c8b50e2abd522de5d21294aa18ea;hp=3d3a1b9092bdd3e2e951cccad6c38802b09fd113;hb=368948cb01fa9056bc4032e155e6a6f24b935987;hpb=f74b34ecdfc157341bc2732931ada38a66a66d4f;ds=sidebyside diff --git a/.htaccess b/.htaccess index 3d3a1b9..d396fc4 100644 --- a/.htaccess +++ b/.htaccess @@ -2,7 +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 + + Options +FollowSymlinks + RewriteEngine On + RewriteBase / + RewriteCond %{REQUEST_URI} ^/hosting$ [NC] + RewriteRule ^(.*)$ https://www.dreamhost.com/r.cgi?606408 [L] + +## End Dreamhost + +## SXEmacs/LJ Rewrite + + Options +FollowSymlinks + RewriteEngine On + RewriteBase / + RewriteCond %{REQUEST_URI} ^/lj.el$ [NC] + RewriteRule ^(.*)$ http://bastard.steveyoungs.com/~steve/lj/lj.el [L] + +## End Dreamhost -# deny access to the toplevel .git directory -RewriteEngine On -RewriteRule \.git - [F,L]