Re: [dwm] diri symbolic rewrite url?

From: Stefan Kuttler <Deleuze_AT_gmx.net>
Date: Sat, 17 Nov 2007 09:42:30 +0100

Did you enable mod_rewrite?
Was httpd -t ok?
What states /var/log/htttpd/{error_log|access_log}?

> Hey,
> Is there anything else I need to do except put show, edit, remove, and
> save *.rc files into the /diri directory. Cause I have those files in
> diri, and the below config...?
> Thanks, Jonny
>
> Jonny Gerold wrote:
> > 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,

Deleuze

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
Received on Sat Nov 17 2007 - 09:43:00 UTC

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