Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Rewrite Rule
  • From: g.lams@xxxxxxxxxx
  • Date: Wed, 26 May 2004 08:33:19 +0200
  • Message-id: <OF2272A141.57FD8FE2-ONC1256EA0.0023560F-C1256EA0.0024027E@xxxxxxxxxx>
I'm not sure to understand what you really wnat to do but if you want to
fully redirect http://stuff.mydomain.com to http://otherstuff.domain.com,
I would put something like this

RewriteEngine on
RewriteLog /var/log/httpd/my.domain-rewrite.log
RewriteLogLevel 5
RewriteRule ^/(.*) http://otherstuff.my.domain/$1 [L,P]

Gaƫl

"Joe Stuart" <jstuart@xxxxxxxxxxxxxxxx> wrote on 25/05/2004 19.45.15:

> I'm having trouble with rewrite rules and hope someone can help.
>
> I'm trying to redirect stuff.mydomain.com to otherstuff.mydoiman.com
>
> RewriteRule ^/stuff.mydomain.com http://otherstuff.mydomain.com
>
> Obviously it's not right cause it doesnt work it just goes to
> stuff.mydomain.com which is the documentroot.
>
> Hope someone can help.
>
> --
> Check the headers for your unsubscription address
> For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> Also check the archives at http://lists.suse.com
> Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>
>


< Previous Next >
This Thread
References