Oh another thing I meant to ask, was what is the view.sh? Could I get a
copy of that? Or what is it maybe???
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 Sun Nov 18 2007 - 06:53:32 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:06:53 UTC