Re: apache
On Tue, Jun 11, 2002 at 01:37:27PM +0200, Krzysztof Krzyzaniak wrote:
> On Tue, Jun 11, 2002 at 01:34:25PM +0200, Webmaster wrote:
> > Witam
> >
> > Chcialem sie dowiedziec jednej rzeczy. Otoz niektore serwisy maja zrobine tak, ze jak wpisze sie np: http://domena.pl to nastepuje redirect do http://www.domena.pl
> > Jak to sie robi? (ale da sie to chyba robic bez htmla...)
>
> <VirtualHost aaa.bbb.ccc.ddd>
> ServerName domena.pl
> Redirect / http://www.domena.pl/
> </Virtual>
>
Powyższe zadziała tylko dla '/'. Jeśli chcesz żeby redirect był dla
dowolnej strony to:
<VirtualHost aaa.bbb.ccc.ddd>
ServerName domena.pl
RewriteEngine on
RewriteRule ^/(.*)$ http://www.domena.pl/$1
</Virtual>
rp.
--
Interruption
You rang?
--
To UNSUBSCRIBE, email to debian-user-polish-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to:
- References:
- apache
- From: Webmaster <banzi@interia.pl>
- Re: apache
- From: Krzysztof Krzyzaniak <eloy@transilvania.eu.org>