Re: [dwm] diri symbolic rewrite url???

From: Jonny Gerold <fsk141_AT_gmail.com>
Date: Fri, 16 Nov 2007 12:08:34 -0800

Hello Anselm,
Thanks, but I still can't get it to work right?
This is what I have:
RewriteEngine On
#RewriteCond %{HTTP_HOST} ^fsk141\.ath\.cx\diri [NC]
#RewriteRule .* http://fsk141.ath.cx/diri/%1 [L]
#RewriteCond %{HTTP_HOST} ^irc\.suckless\.org [NC]
#RewriteRule .*
#http://www.suckless.org/wiki/tools/irc [L]
RewriteCond %{HTTP_HOST} !^fsk141\.ath\.cx\ [NC]
RewriteCond %{HTTP_HOST} !=""
RewriteRule ^/(.*) http://fsk141.ath.cx/$1 [L,R=301]
#RewriteRule ^/wmii /wiki/wmii [R=301]
RewriteRule ^/view.sh(.*) /diri [R=301]
RewriteRule ^/diri(.*) /show.rc$1
RewriteRule ^/edit(.*) /edit.rc$1
RewriteRule ^/remove(.*) /remove.rc$1
RewriteRule ^/save(.*) /save.rc$1

I have the files in /diri, and the .htaccess in /diri, I'm not sure what
I'm doing wrong.
Thanks, Jonny

Anselm R. Garbe wrote:
> 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,
Received on Fri Nov 16 2007 - 21:11:24 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:06:45 UTC