On Fri, Nov 16, 2007 at 12:29:59AM -0800, Jonny Gerold wrote:
> I set up diri at fsk141.ath.cx/diri/show.rc, and I was wondering if
> anyone could help me with the redirect so that it shows fsk141.ath.cx/
> and not show.rc?
Checkout mod_rewrite, here is what I have on suckless.org:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(dwm|wmii|tools)\.suckless\.org [NC]
RewriteRule .* http://www.suckless.org/wiki/%1 [L]
RewriteCond %{HTTP_HOST} ^irc\.suckless\.org [NC]
RewriteRule .*
http://www.suckless.org/wiki/tools/irc [L]
RewriteCond %{HTTP_HOST} !^www\.suckless\.org [NC]
RewriteCond %{HTTP_HOST} !=""
RewriteRule ^/(.*) http://www.suckless.org/$1 [L,R=301]
RewriteRule ^/wmii /wiki/wmii [R=301]
RewriteRule ^/view.sh(.*) /wiki [R=301]
RewriteRule ^/wiki(.*) /show.rc$1
RewriteRule ^/edit(.*) /edit.rc$1
RewriteRule ^/remove(.*) /remove.rc$1
RewriteRule ^/save(.*) /save.rc$1
[...]
So basically /wiki is rewritten with show.rc .
Regards,
-- Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361Received on Fri Nov 16 2007 - 10:50:54 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:06:42 UTC